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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Sweets7
New Member

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
v-xiandat-msft
Community Support
Community Support

Hi @Sweets7 ,

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
v-xiandat-msft
Community Support
Community Support

Hi @Sweets7 ,

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.