简体   繁体   English

SSRS-使用LookupSet表达式的交互式排序

[英]SSRS - Interactive Sorting with LookupSet Expression

I have a report that I need to add an interactive sorting, but the column that I need to add the sorting has a LookUpSet =Join(LookupSet(Fields!ReportUNC.Value, Fields!ReportUNC.Value, Format(Fields!cntSelfService.Value, "###,#######0"), "ExecutionCount")) expression that has a hyperlink to another report. 我有一个报告,我需要添加交互式排序,但是我需要添加排序的列具有LookUpSet =Join(LookupSet(Fields!ReportUNC.Value, Fields!ReportUNC.Value, Format(Fields!cntSelfService.Value, "###,#######0"), "ExecutionCount"))表达式具有指向另一个报表的超链接。 When the interactive sort is clicked the numbers are not sorting correctly. 单击交互式排序时,数字无法正确排序。

在此处输入图片说明

The issue is that the FORMAT function is converting the cntSelfService field to a string and then it is sorted as a string by characters instead of number (where "89" is less that "9"). 问题是FORMAT函数将cntSelfService字段转换为字符串,然后按字符而不是数字(其中“ 89”小于“ 9”)按字符串排序。

=Join(LookupSet(Fields!ReportUNC.Value, Fields!ReportUNC.Value, Format(Fields!cntSelfService.Value, "###,#######0"), "ExecutionCount")) 

Can you remove the FORMAT and use the Text Box's FORMAT Property to format the data like you want? 您是否可以删除FORMAT并使用文本框的FORMAT 属性来格式化所需的数据?

=Join(LookupSet(Fields!ReportUNC.Value, Fields!ReportUNC.Value, Fields!cntSelfService.Value, "ExecutionCount")) 

在此处输入图片说明

I don't think there's another way since you're using Interactive sorting. 我认为您正在使用交互式排序,因此没有其他方法。

Now that I look at it again, do you ever get more than 1 record with the LookUpSet? 现在,我再次查看它,您是否使用LookUpSet获得了多于1条记录? If so both your and my expression would fail. 如果是这样,您和我的表情都会失败。 If not, you could just use LookUp and not use JOIN. 如果没有,您可以只使用LookUp而不使用JOIN。

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

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