简体   繁体   中英

rownumber(nothing) - skip lines

I'm using rownumber(nothing) to create numbering on my report.
I have subheadings for GROUP AVERAGE inside my dataset. Where I use a background expression to set all rows above GROUP AVERAGE Green, below Red, and the line containing GROUP AVERAGE I leave white.

=IIF(Fields!Dealer.Value = "GROUP AVERAGE","",RowNumber(Nothing))

My problem is that Rownumber is not skipping the GROUP AVERAGE line, and I have a situation like this

1  Store A        80%  
2  Store B        78%  
3  Store C        60%  
   ### GROUP AVERAGE  50% ###  
5  Store D        40%  
6  Store E        30%   
...

I want Store D to be number 4, not 5.

runningvalue(Fields!YOURVALUE.Value,count,nothing)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM