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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
lukmtb08
Helper III
Helper III

DAX Switch Filter

Dear community, 

 

I have a lot of switches within my reports, which all have the same structure, but with one different filter within all expressions (f.e. calculate(sum), metric = "Revenue" / "New Orders"). 

 

Is there any possibility to set the filter before the beginning of the switch code, or do I have to write the calculate formular in every expression of my switch? 

 

I am looking for somethin like this: 
Filter(
     Switch formular 
          ), metric = "Revenue") 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@lukmtb08 , Are you looking for a measure slicer ?

 

Power BI Field Parameters — A Quick way for Dynamic Visuals: https://amitchandak.medium.com/power-bi-field-parameters-a-quick-way-for-dynamic-visuals-fc4095ae9af...
Power BI Field Parameters- Measure Slicer and Axis/Dimension slicer: https://youtu.be/lqF3Wa1FllE

 

The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@lukmtb08 , Are you looking for a measure slicer ?

 

Power BI Field Parameters — A Quick way for Dynamic Visuals: https://amitchandak.medium.com/power-bi-field-parameters-a-quick-way-for-dynamic-visuals-fc4095ae9af...
Power BI Field Parameters- Measure Slicer and Axis/Dimension slicer: https://youtu.be/lqF3Wa1FllE

 

The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors