Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I have some Measures, sales, Prices, Share in different measures, to make some of my reports more flexible would I like to have all my measures in one slicer.
So what I have done is to create a table "FilterMeasure" with the measure and then I use below DAX that connects me to the Measure.
Solved! Go to Solution.
Format the measure as a whole number, but in the price and % values follow this pattern:
VALUES(FilterMeasures[Measure]) = "Price/EAN", FORMAT[Price/EAN], "#,##0.00"),
and
VALUES(FilterMeasures[Measure]) = "Value%Share", FORMAT([Values MS], "#0.0%")
Proud to be a Super User!
Paul on Linkedin.
Format the measure as a whole number, but in the price and % values follow this pattern:
VALUES(FilterMeasures[Measure]) = "Price/EAN", FORMAT[Price/EAN], "#,##0.00"),
and
VALUES(FilterMeasures[Measure]) = "Value%Share", FORMAT([Values MS], "#0.0%")
Proud to be a Super User!
Paul on Linkedin.
Many thanks @PaulDBrown! This give me the format I want on all the Measure!
Now next challange is sorting, because it works perfect on Val/Vol/Uni but when sorting on Price and Share it comes in nummeric order from 1to9, I have tested a bit but cant really find a solution that the highest/lowest comes first, do you know anything about this?
The reason that the sorting is as you see it is because FORMAT returns a text string. You might try adding the numerical value as a new measure to sort the visual by. You can then hide it by turning off the text wrap options in the formatting pane and "hiding" the column by dragging the right boundary left to conceal it.
Proud to be a Super User!
Paul on Linkedin.
Hi @Stoppelaar ,
you can achieve something like this with Calculation Groups.
https://www.sqlbi.com/articles/controlling-format-strings-in-calculation-groups/
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
78 | |
77 | |
59 | |
36 | |
33 |
User | Count |
---|---|
100 | |
62 | |
56 | |
48 | |
41 |