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

Creating Filter from mesure

Hello,

 

I would like to know if there is a DAX formula to create a filter using existing mesure. I would like that all the differentes values ( measures) Raw, Pack, P3rd, COGS OVE, ... are grouped in one measure in order to use a filter to switch between them easily.

akerrout_1-1653029938085.png

 

Best regards,

 

Kerrout Anis

 

1 ACCEPTED SOLUTION

Hello @Anonymous -

 

This should help you out-

https://youtu.be/-nqEv2YXLsU

Please mark it as answer if it resolves your issue. Kudos are also appreciated.

 

 

 

 

Cheers,
Shishir

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hello,

It is impossible to create a filter from value. In my case ( screen) Raw , pack, P3rd, OVE are numbers. I would like to create a new column  composed of ( raw, pack, P3rd ,OVE)  so that i can use the filter that shows Raw , pack, P3rd, OVE.

akerrout_0-1653031392643.pngakerrout_1-1653031950038.png

Bet regards,

Kerout Anis

danextian
Super User
Super User

Hi @Anonymous ,

If you want to be able to switch between measures by just clicking a button/slicer item, you can you the Field Parameters feature available as a preview in the May 2022 release of Power BI Desktop.  You can also use measure to filter another measure but depending the current filter context and your data model, the formula below might not give you the result you expect.

NewMeasure =
CALCULATE ( [MyMeasure], FILTER ( Table, Table[Column] = [MyOtherMeasure] ) )

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
Anonymous
Not applicable

thank you @danextian , can you show me where is the Field Parameter ?

 

Here's a demo of that: https://www.youtube.com/watch?v=V6WchPDZibI 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Hello @Anonymous -

 

This should help you out-

https://youtu.be/-nqEv2YXLsU

Please mark it as answer if it resolves your issue. Kudos are also appreciated.

 

 

 

 

Cheers,
Shishir
Shishir22
Solution Sage
Solution Sage

Hello @Anonymous ,


Not very clear. Request you to please elaborate with example so that we can help you.

 

Cheers,
Shishir

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.