Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Refer the below dataset, I need to calculate or categorize the value field below in to quartiles. I have a Category slicer in the report , which is a multiselect slicer and when i select a category, the quartile calculation should recalculate.
| Category | Gender | ID | Value |
| A | M | 1 | 48 |
| A | F | 2 | 29 |
| A | M | 3 | 39 |
| A | M | 4 | 12 |
| A | M | 5 | 12 |
| A | F | 6 | 39 |
| B | F | 7 | 25 |
| B | F | 8 | 24 |
| B | M | 9 | 21 |
| B | M | 10 | 14 |
| B | F | 11 | 39 |
| C | M | 12 | 13 |
| C | M | 13 | 46 |
| C | M | 14 | 37 |
| C | M | 15 | 34 |
| C | F | 16 | 47 |
| C | F | 17 | 14 |
| C | M | 18 | 17 |
| C | M | 19 | 27 |
| C | M | 20 | 14 |
Just to updatethe question,
am using a measure like below
Expected Result as per excel
Solved! Go to Solution.
I was able to resolve the issue by using below measure.
I was able to resolve the issue by using below measure.
Hi @mmcblues,
AFAIK, you can use measure expression to interact with filter selection and return category tags based on current value, but measures cannot be used on axis or legend fields. (current they only support columns)
For this scenario, I'd like to suggest you use table visuals instead to show the record with measure expression results of categories.
BTW, calculated column/table formulas are not able to dynamically change based on slicer/filters. (they are working on different data levels and you can't use child level to affect its parent)
Notice: the data level of power bi.
Database(external) -> query table(query, custom function, query parameters) -> data model table(table, calculate column/table) -> data view with virtual tables(measure, visual, filter, slicer)
Regards,
Xiaoxin Sheng
Hi @mmcblues
Have you seen these links, I think those links would be helpful:
https://community.powerbi.com/t5/Quick-Measures-Gallery/QUARTILE/m-p/1064307
https://community.powerbi.com/t5/Desktop/Quartile-with-calculated-mearues/m-p/547337
https://sqldusty.com/2018/08/31/calculating-quartiles-with-dax-and-power-bi/
Did I answer your question? Mark my post as a solution!
Appreciate your Kudos !!
| Category | Gender | ID | Value |
| A | M | 1 | 48 |
| A | F | 2 | 29 |
| A | M | 3 | 39 |
| A | M | 4 | 12 |
| A | M | 5 | 12 |
| A | F | 6 | 39 |
| B | F | 7 | 25 |
| B | F | 8 | 24 |
| B | M | 9 | 21 |
| B | M | 10 | 14 |
| B | F | 11 | 39 |
| C | M | 12 | 13 |
| C | M | 13 | 46 |
| C | M | 14 | 37 |
| C | M | 15 | 34 |
| C | F | 16 | 47 |
| C | F | 17 | 14 |
| C | M | 18 | 17 |
| C | M | 19 | 27 |
| C | M | 20 | 14 |
Just to update you, i have gone through the links that you posted but its not getting what i wanted.
am using a measure like below
Hi @mmcblues,
You can take a look at the following blog about all functions to use them ignore the particular filter effects.
Managing “all” functions in DAX: ALL, ALLSELECTED, ALLNOBLANKROW, ALLEXCEPT - SQLBI
Regards,
Xiaoxin Sheng
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.