Forum Discussion
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")
Anonymous , 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-fc4095ae9afd
Power BI Field Parameters- Measure Slicer and Axis/Dimension slicer: https://youtu.be/lqF3Wa1FllEThe information you have provided is not making the problem clear to me. Can you please explain with an example.
Appreciate your Kudos.
1 Reply
- amitchandak
Super User
Anonymous , 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-fc4095ae9afd
Power BI Field Parameters- Measure Slicer and Axis/Dimension slicer: https://youtu.be/lqF3Wa1FllEThe information you have provided is not making the problem clear to me. Can you please explain with an example.
Appreciate your Kudos.