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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors