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
corange
Post Patron
Post Patron

Pareto Analysis & Measures

Hi everyone, 

 

I am after some recommmendations / directions. 

 

I have created a Pareto Analysis on POWER BI using the following measures: 

 

  • Total_Amount = SUMX(JobDetails, JobDetails[ServiceCat])
  • Rank_All = RANKX(ALL(JobDetails[ServiceCat]), [Total_Amount])
  • Pareto_Value = SUMX(TOPN([Rank_All], ALL(JobDetails[ServiceCat]), [Total_Amount]), [Total_Amount])
  • Amount_All = CALCULATE([Total_Amount], ALL(JobDetails[ServiceCat])
  • Pareto_% = DIVIDE([Pareto_Value], [Amount_All], BLANK())

Capture.JPG

 

It works well however, when I add other measures in the table (e.g. daily averages) or a field from the table, the ranking goes wrong and doesnt work anymore. Do you know what needs to be done to avoid this? 

 

Example of measures I am trying to add to the table are: 

 

  • Daily Avg Job= DIVIDE(SUM(Jobs_Details'[Is Countable]),SUM(vw_Calendar_BI[IsTradingDay]),0)
  • Avg Job Value =DIVIDE(SUM(Jobs_Details'[TOTAL_CHARGE]), SUM(Jobs_Details'[Countable]),0)
 
Capture2.JPG
 
Thank you. 
3 REPLIES 3
v-xiaotang
Community Support
Community Support

Hi @corange 

Not sure what's your data and the relationship between table, so I create a sample to test, however I didn't reproduce the wrong behavior,

vxiaotang_0-1635216169504.png

 

Could you share a sample file for us to test? 

 

Kindly Note: you can replace raw data with bogus data to protect your sensitive information. Thanks 🙂

 

 

Best Regards,

Community Support Team _Tang

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

YukiK
Impactful Individual
Impactful Individual

If the purpose is to get the rank over the whole table, then you may use RANKX(ALL(JobDetails), [Total_Amount]) instead of what you have?

I would like to be able to use filter and categorise it by different field, like clients, service type and rates card. 

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.