Feb 25, 2005 #1 henryc1 Technical User Feb 25, 2005 4 US How can I conditionally format text of the top N values, or to P percentile, as opposed to simply >= a value. For example, instead of saying: If Table.Field > 500 then crBold I want to say: If Table.Field is in the top 10 then crBold Help!! Thanks
How can I conditionally format text of the top N values, or to P percentile, as opposed to simply >= a value. For example, instead of saying: If Table.Field > 500 then crBold I want to say: If Table.Field is in the top 10 then crBold Help!! Thanks
Feb 25, 2005 Thread starter #2 henryc1 Technical User Feb 25, 2005 4 US One more thing, I want to format based on the top N in each group. Thanks. Upvote 0 Downvote
Feb 25, 2005 Thread starter #3 henryc1 Technical User Feb 25, 2005 4 US I tried if {BIN_COUNT.BIN_CNT} >= PthPercentile (80,{BIN_COUNT.BIN_CNT}, GroupName ({@Time})) then crRed else crBlack and I get the error "The summary/running total field could not be created Upvote 0 Downvote
I tried if {BIN_COUNT.BIN_CNT} >= PthPercentile (80,{BIN_COUNT.BIN_CNT}, GroupName ({@Time})) then crRed else crBlack and I get the error "The summary/running total field could not be created
Feb 25, 2005 #4 lbass Technical User Feb 9, 2002 32,816 US Do you have a group inserted on {@time}? If so, then your formula should be: if {BIN_COUNT.BIN_CNT} >= PthPercentile (80,{BIN_COUNT.BIN_CNT}, {@Time}) then crRed else crBlack For topN, you can add the special field groupnumber to your group header/footer and then use a formula like: if groupnumber <= N then crRed else crBlack //where N=your topN value Or instead of groupnumber you can use a running total that resets on change of group. -LB Upvote 0 Downvote
Do you have a group inserted on {@time}? If so, then your formula should be: if {BIN_COUNT.BIN_CNT} >= PthPercentile (80,{BIN_COUNT.BIN_CNT}, {@Time}) then crRed else crBlack For topN, you can add the special field groupnumber to your group header/footer and then use a formula like: if groupnumber <= N then crRed else crBlack //where N=your topN value Or instead of groupnumber you can use a running total that resets on change of group. -LB
Feb 28, 2005 Thread starter #5 henryc1 Technical User Feb 25, 2005 4 US Works perfectly. Thanks!! Upvote 0 Downvote