简体   繁体   English

SSRS报告表达式中的范围参数问题

[英]Scope parameter issue in SSRS report Expression

Friends, I have a detailed chart which represents individual expenses, but instead of handwritten fields, I want to use them from expression to load automatically as those fields are not the same every time. 朋友,我有一张详细的图表可以代表个人费用,但是我不想使用手写字段,而是要通过表达式自动使用它们,因为这些字段每次都不相同。 Hence I have used a Row Group with a Scope Parameter belonging to Row Grouping. 因此,我使用了一个行组,该行组的作用域参数属于行分组。 More over I want them to have column wise Grouping based on Created Month. 此外,我希望他们能够根据“创建月份”进行按列分组。 But the issue is I am not able to add multiple Scope parameter to the expression. 但是问题是我无法向表达式添加多个Scope参数。 Please find the images for better understanding here: http://postimg.org/gallery/3eav75ja8/d73ae417/ 请在此处找到图像以更好地理解: http : //postimg.org/gallery/3eav75ja8/d73ae417/

image1 and image3 represent hand written fields. image1和image3代表手写字段。 image2 and image4 represent how I need, but the values for details are not correct. image2和image4代表我的需要,但详细信息的值不正确。

Any guidance shall be appreciated. 任何指导意见将不胜感激。 Thank you! 谢谢!

Yes, it was bit complicated, But my new friend "INSCOPE" did the trick for me!! 是的,有点复杂,但是我的新朋友“ INSCOPE”帮了我大忙!

=IIf(Inscope("Created_Month") and Inscope("statusfld"),Sum(IIf(Fields!category.Value = "DIRECT EXPENSES",Fields!Booking.Value,nothing)),Sum(IIf(Fields!category.Value = "DIRECT EXPENSES",Fields!Booking.Value,nothing))) = IIf(Inscope(“ Created_Month”)和Inscope(“ statusfld”),Sum(IIf(Fields!category.Value =“ DIRECT EXPENSES”,Fields!Booking.Value,nothing)),Sum(IIf(Fields!类别。值=“直接费用”,字段!Booking.Value,无值)))

Thank you! 谢谢!

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

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