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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
GBarreto1
Regular Visitor

Quartile in dax

I need to calculate the quartile on a measure but I am unsuccessful in my attempts, I am trying as follows:
     Define Measure 'Table' [MyMeasure] = PERCENTILEX.EXC (ALL (dProgram [NM_PROGRAM]), [% PAUSE], 0.75)

where [% PAUSE] is as I need to get the quartile

4 REPLIES 4
v-xinruzhu-msft
Community Support
Community Support

Hi @GBarreto1 

You can try the following measure

 

[MyMeasure] = CALCULATE(PERCENTILEX.EXC (dProgram, [% PAUSE], 0.75),ALL (dProgram [NM_PROGRAM]))

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

GBarreto1_1-1677851399213.png

I forgot to mention, I have this view of the pause measure grouped by date and program, I need to calculate the quartile of this pause view that is generated

amitchandak
Super User
Super User

@GBarreto1 , refer if video from Curbal can help

https://curbal.com/blog/glossary/percentilex-exc-dax

 

Top 80/20 , percent /percentile
https://blog.enterprisedna.co/implementing-80-20-logic-in-your-power-bi-analysis/
https://forum.enterprisedna.co/t/testing-the-pareto-principle-80-20-rule-in-power-bi-w-dax/459
https://finance-bi.com/power-bi-pareto-analysis/
https://community.powerbi.com/t5/DAX-Commands-and-Tips/Calculate-the-sum-of-the-top-80/td-p/763156

 

 

Or Window function

Power BI Window: Pareto Analysis Again, 80% of sales, Order by Measure when REL position is used: https://youtu.be/GpoITi_tRIw

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

GBarreto1_0-1677851158490.png

Basically, I set up this view to bring the pauses grouped by date and program, I need the quartile based on this pause measure that is generated

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.