reporting-services - 基于多个多值参数SSRS的列可见性

标签 reporting-services

我有一个报告需要根据两个不同的多值参数的值切换列的可见性。下面的代码将每个参数连接到“”,然后使用 IntStr 搜索特定值。如果两个参数都具有这些值,则列可见性应打开。谁能帮我确定为什么这不起作用?

=IIF((InStr(Join(Parameters!Metrics.Value,""),"S") AND 
InStr(Join(Parameters!ProductGroup.Value,""),"OS")), False, True)

最佳答案

InStr 函数返回字符串中字符出现的起始位置的整数值。所以,表达应该是..

=IIF((InStr(Join(参数!Metrics.Value,""),"S")>0 AND InStr(Join(Parameters!ProductGroup.Value,""),"OS"))>0, False, True)

关于reporting-services - 基于多个多值参数SSRS的列可见性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25068720/

相关文章:

reporting-services - Reporting Services 报表中的自定义代码

reporting-services - SSRS 2008 R2 - SSRS 2012 - ReportViewer : Reports in Safari/Chrome but works fine in Firefox/Internet Explorer 8. ..为什么?

reporting-services - 如何在 hh :mm:ss format in Reporting Services 中显示秒的时间跨度

reporting-services - 显示嵌入在 DLL 文件中的 .RDLC 报告

sql-server - 如何删除SSRS报告中的“Total”行?

sql-server - SSRS更新数据源总是报告 "The password is not valid. Please retype the password."

reporting-services - 通过 URL 的 SSRS 传递参数

reporting-services - 使用 SSRS 中的按钮执行存储过程代码

sql - 报告服务 XML 错误

reporting-services - 如何使用 VS 2008 BIDS 创建 SSRS 2008r2 rdl