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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

Pareto Chart of RunningAverage

Hi Community,

I have Table as follows. 

 

QA_ScoreError_CategoryProvider_ID
0EC11001-1005
0EC11001-1006
0EC11001-1007
2.5EC11003-1007
2.5EC11003-1056
2.5EC11004-1002
5EC11003-1007
5EC11004-1008
5EC11004-1009
5EC11004-1011
7.5EC11004-1012
7.5EC11005-1001
7.5EC21003-1007
7.5EC21004-1002
10EC11003-1007
10EC11004-1002
10EC11004-1011
10EC11004-1012
12.5EC11016-1001
12.5EC11042-1067
12.5EC21003-1007
15EC21003-1007
15EC21004-1002
15EC21004-1011
15EC21004-1012
20EC21003-1007
20EC21004-1002
25EC21042-1067

 

 

Here, I am trying to create pareto chart (using Line and clustered column chart) with Error_Category as Shared axis, AVG_QA_Score as Column values, and Pareto% as line values.

 

I have used the following DAX as per this (7:15 onwards) for the table that I have attached in the screenshot.

 

AVG_QA_Score = AVERAGE(Table[QA_Score])
RankAVG_QA_Score = RANKX(ALL(Table[Error_Category]), [AVG_QA_Score])
CumulativeAVG_QA_Score = CALCULATE([AVG_QA_Score], TOPN([RankAVG_QA_Score], ALL(Table[Error_Category]),[AVG_QA_Score]))
Pareto% = DIVIDE([CumulativeAVG_QA_Score], CALCULATE([AVG_QA_Score], ALL(Table[Error_Category])))
 
Here, I want the cumulative AVG_QA_Score, but it is rather showing me as cumulative average since I have used AVERAGE in the AVG_QA_Score.  Is there anyway I can get the cumulative AVG_QA_Score so I can put it as Pareto% on Line values??
 
Thanks in advance. 
 
 
4.jpg
 
2 ACCEPTED SOLUTIONS

 

@Anonymous 

Can you use the below measure instead?

CumulativeAVG_QA_Score = 

VAR R= [RankAVG_QA_Score]
RETURN
SUMX(
    FILTER(
    SUMMARIZE(ALL(Table2),Table2[Error_Category]),
    [RankAVG_QA_Score] <= R),
     [AVG_QA_Score]
)

Fowmy_0-1599044106811.png

 

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

 



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

Anonymous
Not applicable

Awesome @Fowmy Thank you.

You can check the age of the % pair once you want. You must add up to 100% in the last range as shown in this video (Time - 15:00 ).

View solution in original post

8 REPLIES 8
Fowmy
Super User
Super User

@Anonymous 

Can you try the following measure for the cumulative Average?

CumulativeAVG_QA_Score = 

VAR R= [RankAVG_QA_Score]
RETURN
CALCULATE(
    [AVG_QA_Score], 
    FILTER(
    SUMMARIZE(ALL(Table2),Table2[Error_Category]),
    [RankAVG_QA_Score] <= R)
)

 

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn




Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

Awesome @Fowmy Thank you.

Can you check the pareto %age once please. It should add up to 100% at the last rank as per this video (Time - 15:00)

@Anonymous 

I didn't actually see the video, use the measure for Cumm %

Pareto% = 
DIVIDE(
    [CumulativeAVG_QA_Score], 
    CALCULATE(
        [CumulativeAVG_QA_Score],
        ALLSELECTED(Table2[Error_Category]))
)

 

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

Hi @Fowmy ,  

 

I tried the above formula for cumm %, but it is giving me the required percentage.  Please take a look at the shared screenshot.  If the link for the pbix is not working,  I am sharing some more data below.  The formulas for the measures are same as above.  

 

1.  In the shared screenshot, the CumulativeAVG_QA_Score should be 29.63+4.38 = 34.01.  I am not able to understand why it is showing as 34.00 !!!

 

2.  I need the % to be cumulative.  For the 1st rank (EC2), it should be 10.00/38.07 = 26.26 %.  Similary for the 2nd rank (EC1), it should be 16.88/38.07 = 44.33%, and 3rd rank (EC3), it should be 23.38/38.07 = 61.41%, and so on.  Note:  Here, 38.07 is the total of all AVG_QA_Score.

 

QA_ScoreError_CategoryProvider_ID

0EC11001-1005
0EC11001-1006
2.5EC11001-1005
2.5EC11003-1007
5EC11003-1007
5EC11004-1008
7.5EC11004-1012
7.5EC11005-1001
10EC11003-1007
10EC11004-1002
12.5EC11016-1001
20EC11042-1067
0EC21001-1005
0EC21001-1006
2.5EC21001-1005
2.5EC21003-1007
5EC21003-1007
5EC21003-1052
7.5EC21003-1007
7.5EC21004-1002
10EC21003-1007
10EC21003-1054
12.5EC21003-1007
12.5EC21004-1002
15EC21003-1007
15EC21004-1002
20EC21003-1007
20EC21004-1002
25EC21042-1067
0EC31001-1005
0EC31001-1006
2.5EC31003-1007
2.5EC31004-1002
5EC31003-1007
5EC31004-1002
10EC31003-1007
10EC31003-1054
15EC31003-1007
15EC31111-1001
0EC41001-1005
0EC41001-1006
2.5EC41003-1007
2.5EC41004-1002
5EC41003-1007
5EC41004-1002
10EC41003-1007
10EC41004-1002
0EC51001-1005
0EC51001-1006
2.5EC51001-1005
2.5EC51001-1006
5EC51001-1007
5EC51003-1007
7.5EC51003-1007
7.5EC51004-1011
10EC51004-1058
10EC51051-1049
12.5EC51003-1007
12.5EC51004-1058
0EC61001-1005
0EC61001-1006
2.5EC61003-1007
2.5EC61004-1011
5EC61003-1007
5EC61004-1002
7.5EC61003-1007
10EC61042-1067

 

Please take a look.  Thank you.

 

 

 

6.jpg.

Anonymous
Not applicable

@Fowmy Its giving the same cumulative average.

@Anonymous 

 

As per the sample you shared, my results show as below. Error Code EC1 is showing 9.29 which is cumulative.
Share more data and expected result so I can cross-check, You share a sample PBIX file if possible.


Fowmy_0-1599040688174.png

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

Hi @Fowmy  We want the cumulative AVG_QA_Score.  For the second row, the cumulativeAVG_QA_Score should be like 15.25+5.97, like running total.

 

Thanks 

 

@Anonymous 

Can you use the below measure instead?

CumulativeAVG_QA_Score = 

VAR R= [RankAVG_QA_Score]
RETURN
SUMX(
    FILTER(
    SUMMARIZE(ALL(Table2),Table2[Error_Category]),
    [RankAVG_QA_Score] <= R),
     [AVG_QA_Score]
)

Fowmy_0-1599044106811.png

 

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

 



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors