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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Problem with Quartiles Calculation

Hi

I am having problem with calculating quartiles based on % column .

I am able to get Quartiles per user but not able to get the count of quartiles.

 

I have to get quartile value for Total percentage under category Q1,Q2,Q3,Q4 bases on below 25, b/w 25-50, b/w 50-70, and above 75 which further need to plot in graph.

I am getting error in overall value as pie chart is using sum of these values when we select week and month.

 

 

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @Anonymous,

You can add a calculated column to assign quartiles category of your values, then you can use aggregate mode count on quartile category field to get specific quartiles percent.

BTW, calculate column results can't dynamic changes based on filters. If you want to keep the filter effect on the calculation, you can use measure formula with a variable to manually summarize these categories and values and do aggravate on these variable tables to get specific values.

Notice: you can't directly apply multiple aggregates on measure formulas. It requires you to manually do summary in a variable table with summarizing functions, then you can package above variable table with iterator functions(e.g. sumx, averagex, maxx, minx...) to achieve multiple aggregates.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @Anonymous,

You can add a calculated column to assign quartiles category of your values, then you can use aggregate mode count on quartile category field to get specific quartiles percent.

BTW, calculate column results can't dynamic changes based on filters. If you want to keep the filter effect on the calculation, you can use measure formula with a variable to manually summarize these categories and values and do aggravate on these variable tables to get specific values.

Notice: you can't directly apply multiple aggregates on measure formulas. It requires you to manually do summary in a variable table with summarizing functions, then you can package above variable table with iterator functions(e.g. sumx, averagex, maxx, minx...) to achieve multiple aggregates.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Greg_Deckler
Super User
Super User

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.