简体   繁体   中英

Column visibility when multiple values vs single values are passed into a multi-value parameter - SSRS/Visual Studio

Is there a way to make columns hidden/visible depending on whether a multi-value parameter is passing in a single value versus multiple values?

Currently my report is hiding Account Name and Account Number fields when searching by account. When searching by a boolean parameter, accountmaster, these columns are hidden with the following expression:

=(Parameters.byaccountmaster.Value = 0)

I would like to modify this argument so that the columns hide only when a single value is passed into the multi-value @account integer parameter.

You can use the .Count of the parameter.

=IIF(Parameters!byaccountmaster.Count = 1, True, False)

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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