简体   繁体   中英

SSRS Row number based on 2 groups

How to create row number based on 2 groups My issue is I created new field named test to test row number and my code in next pic link

Group based on ItemId

but if the item duplicated the row number start duplicate also like next Pic

hot to create number sequence based on vendor and itemid , i need the number sequence continues with every item even it duplicated

You need to add the scope. Then the runnung value will be calculated on the whole dataset or based on your grouping. For example:

=RunningValue(Fields!ItemId.Value, Count, "YourDatasetName")

=RunningValue(Fields!ItemId.Value, Count, "YourGroupName")

This gives you two different results based on the scope. And you need the second one I think.

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