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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
AndreaRSMRCT
Frequent Visitor

Pareto Chart

Hi community,

 

I'm a new PowerBi user and I'm trying to create two Pareto graphs starting from this dataset:

DataSet.PNG

 

I would like to create one graph for the revenue "voice" and another one for "cost". On the x-axis i would like to put the different projects whilst on y-axis I would like to put the amount.

 

Is it possible to do that?

 

I thank you in advance for your help.

 

Best Regards,

 

Andrea

2 ACCEPTED SOLUTIONS
kcantor
Community Champion
Community Champion

@AndreaRSMRCT 

Without table names, I will have to do my best.

First you want to create a measure for Cost and Revenue.

Cost = Calculate(Sum('TableName'[Amount]), [Voice]="Cost")

Revenue = Calculate(Sum('TableName'[Amount]), [Voice]="Revenue")

Then create a cost and Revenue measure for All projects. From here forward, I will just do Cost and you can replicate for Revenue.

Cost All Projects = Calculate([Cost], ALL('TableName'[Project]))

Next, create a project Rank measure: (look out for the comma space comma in this one)

Project Cost Rank = RANKKX( ALL('TableName'[Project]), [Cost], , DESC)

Next, create a Project Cost Pareto Value:

Project Cost Pareto Value = SUMX( TOPN( [Project Cost Rank], ALL ('TableName'[Project]), [Project Cost Rank], ASC ), [Cost] )

Finally, create a Cost Pareto %:

Cost Pareto % = DIVIDE( [Project Cost Pareto Value], [Cost All Projects])

Use your combo graph and use the Cost Pareto % for the line, put your Projects on the X axis and the [Cost] on the Y Axis. You can also use these measure in a table with your Project on the row and the amount and pareto % in the values.

If this does not work, please provide additional details on table names, column names, and your model snapshot. This was a stab in the dark with limited information.

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Hello Kcantor,

 

Thank you very much for your help.

 

I was able to create the Pareto chart following your instructions. Smiley Wink

 

Best Regards,

 

Andrea

View solution in original post

3 REPLIES 3
kcantor
Community Champion
Community Champion

@AndreaRSMRCT 

Without table names, I will have to do my best.

First you want to create a measure for Cost and Revenue.

Cost = Calculate(Sum('TableName'[Amount]), [Voice]="Cost")

Revenue = Calculate(Sum('TableName'[Amount]), [Voice]="Revenue")

Then create a cost and Revenue measure for All projects. From here forward, I will just do Cost and you can replicate for Revenue.

Cost All Projects = Calculate([Cost], ALL('TableName'[Project]))

Next, create a project Rank measure: (look out for the comma space comma in this one)

Project Cost Rank = RANKKX( ALL('TableName'[Project]), [Cost], , DESC)

Next, create a Project Cost Pareto Value:

Project Cost Pareto Value = SUMX( TOPN( [Project Cost Rank], ALL ('TableName'[Project]), [Project Cost Rank], ASC ), [Cost] )

Finally, create a Cost Pareto %:

Cost Pareto % = DIVIDE( [Project Cost Pareto Value], [Cost All Projects])

Use your combo graph and use the Cost Pareto % for the line, put your Projects on the X axis and the [Cost] on the Y Axis. You can also use these measure in a table with your Project on the row and the amount and pareto % in the values.

If this does not work, please provide additional details on table names, column names, and your model snapshot. This was a stab in the dark with limited information.

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hello Kcantor,

 

Thank you very much for your help.

 

I was able to create the Pareto chart following your instructions. Smiley Wink

 

Best Regards,

 

Andrea

@AndreaRSMRCT 

Happy to know that worked off the cuff.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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