简体   繁体   English

SSRS行号基于2组

[英]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 如何基于2组创建行号我的问题是我创建了一个名为test的新字段来测试行号和下一个图片链接中的代码

Group based on ItemId 根据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 热烈地根据供应商和itemid创建编号序列,我需要编号序列继续与每个项目重复

You need to add the scope. 您需要添加范围。 Then the runnung value will be calculated on the whole dataset or based on your grouping. 然后,将在整个数据集中或根据您的分组来计算runnung值。 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. 我想您需要第二个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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