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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors