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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
o59393
Post Prodigy
Post Prodigy

Pareto chart not closing to 100%

Hi all

 

I am trying to a pareto table with a column called requirement and its respective count of times they appear:

 

ranking111.PNG

 

First thing I do is the rank dax:

 

Rank Kore requirement = 
RANKX (
    CALCULATETABLE ( DISTINCT ( GAO[kore_requirement_code] ), ALLSELECTED ( gao ) ),
    CALCULATE(COUNT(GAO[kore_requirement_code])),
    ,
    DESC,
    DENSE
)

 

Then, the cumulative and total:

Cumulative kore requirement = SUMX(
TOPN([Rank Kore requirement],
ALL(GAO[kore_requirement_code]),[kore requirement dax],DESC),[kore requirement dax])

 

 

Finally, the pareto:

 

 

The result is:

 

par1.PNGpar2.PNG

 

As you see in the last image, the pareto percentage reached up to 49.82%

 

how can i get it right?


Thanks.

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

hi @o59393 

When you  create the rank measure, just use Skip instead of DENSE in the formual as below:

Rank Kore requirement =
RANKX (
CALCULATETABLE ( DISTINCT ( GAO[kore_requirement_code] ), ALLSELECTED ( gao ) ),
CALCULATE(COUNT(GAO[kore_requirement_code])),
,
DESC,
DENSE
)

 

 

Rank Kore requirement = 
RANKX (
CALCULATETABLE ( DISTINCT ( GAO[kore_requirement_code] ), ALLSELECTED ( gao ) ),
CALCULATE(COUNT(GAO[kore_requirement_code])),
,
DESC,

Skip
)

 

 

Regards,

Lin

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

View solution in original post

5 REPLIES 5
v-lili6-msft
Community Support
Community Support

hi @o59393 

When you  create the rank measure, just use Skip instead of DENSE in the formual as below:

Rank Kore requirement =
RANKX (
CALCULATETABLE ( DISTINCT ( GAO[kore_requirement_code] ), ALLSELECTED ( gao ) ),
CALCULATE(COUNT(GAO[kore_requirement_code])),
,
DESC,
DENSE
)

 

 

Rank Kore requirement = 
RANKX (
CALCULATETABLE ( DISTINCT ( GAO[kore_requirement_code] ), ALLSELECTED ( gao ) ),
CALCULATE(COUNT(GAO[kore_requirement_code])),
,
DESC,

Skip
)

 

 

Regards,

Lin

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

hi @v-lili6-msft 

 

Even though the pareto closed at 100% the cumulative is not summing correctly. This is because when the count column repeats a value, the cumulative wont sum it:

cumulativeee.PNG

 

Where:

 

Rank Kore requirement = 
RANKX (
CALCULATETABLE ( DISTINCT ( GAO[kore_requirement_code] ), ALLSELECTED ( gao ) ),
CALCULATE(COUNT(GAO[kore_requirement_code])),
,
DESC,

Skip
)

 

Cumulative kore requirement = SUMX(
TOPN([Rank Kore requirement],
ALL(GAO[kore_requirement_code]),[kore requirement dax],DESC),[kore requirement dax])

 

kore requirement dax = CALCULATE(COUNT(GAO[kore_requirement_code]))

 

How can the cumulative keep summing? it should look like column 😧

 

counttss.PNG

 

Thanks.

Hello, did you manage to solve your problem, is that I have the same problem with my count column?

Greg_Deckler
Super User
Super User

Difficult to say, sample data as text. 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


@ 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!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Apologies @Greg_Deckler 

 

Here you have the pbix https://1drv.ms/u/s!ApgeWwGTKtFdhkdsKksoIp_tIGCf?e=dJLGT4

 

For some reason the rank is not displaying any other value rathet than 1. 

 

Thank you for the help.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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