我有一个多值参数,其中大约有 25 个元素。如果用户选择“全选”并且我使用标准(至少据我所知)方法在报告顶部显示参数:
=join(Parameters!ProductClass.Value, ",")
而不是“全部”这个词或我得到的东西:
01,02,03,04,05,06,07,08,09,10,11,12,14,15,16,17,18,19,20,21,22,25,30,31,98,99
难道就没有更好的办法来处理这个事情吗?
计算所选值的数量,并将其与填充参数的数据集中的记录总数进行比较。
=IIF(Parameters!ProductClass.Count = Count(Fields!CaseSensitiveFieldName.Value, "CaseSensitiveDataSetName"), "All", Join(Parameters!ProductClass.Value, ","))