Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Filter a SSRS Dataset based on a parameter value

Is it possible to apply a filter on a col based on the parameter value passed?

 

or e.g if Parameter.value = Yes then filter ColumnA like '%United Kingdom" 

else no filter

 

I know I can easily write this using a Stored Proc but I am using Power Bi Paginated reports pointing to a PBI Data model. 

 

If there is an alternate approach then happy to try that too.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

Below is my table:

vxiandatmsft_1-1713835631975.png

The following expression might work for you:

IIf(Parameters!ReportParameter1.Value = "Yes" And Fields!Name.Value = "%United Kingdom", Fields!Name.Value , "")

The final output is shown in the following figure:

vxiandatmsft_2-1713837060428.png

Best Regards,

Xianda Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

Below is my table:

vxiandatmsft_1-1713835631975.png

The following expression might work for you:

IIf(Parameters!ReportParameter1.Value = "Yes" And Fields!Name.Value = "%United Kingdom", Fields!Name.Value , "")

The final output is shown in the following figure:

vxiandatmsft_2-1713837060428.png

Best Regards,

Xianda Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.