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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.