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
gauravp
Regular Visitor

Pareto Chart

Hi I want to make Pareto Chart. I have around 8 to 9 columns which get the data from number 0 to 6. Therefore, I wanted to make a pareto chart for those 8 columns category. So, It would be helpful if you could please let me know how can i make a pareto chart so that everytime the number is more than 0 it gets counted and then, we can make a pareto chart.

 

Sincerely,

 

Gaurav Paul

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

Hi @gauravp,

 

Based on my understanding, you have 8 columns, each column has 0-6 values. You can to count value for each column when values more than 0. Then use counted vales to create Pareto chart, right?

 

Assume the sample data table like below:

 

1.PNG

 

1. Select all columns, then click Unpivot Columns.

 

2.PNG
2. Filter out value 0 from Value column.

 

3.PNG
3. Click Group By, return count values.

 

4.PNG

 

Apply the change, back to the report, create a calculated column like below:

 

Cumulative % = var CumulativeCount = SUMX(FILTER('Table2','Table2'[Attribute]<=EARLIER(Table2[Attribute])),'Table2'[Count])
var Total=CALCULATE(SUM(Table2[Count]),ALL(Table2))
return
DIVIDE(CumulativeCount,Total)

 

6.PNG7.PNG

 

You can download attached pbix file to see if it meet your requirements.

 

Reference:

Pareto Charting in PowerBI

 

Best Regards,
QiuyunYu

 

 

Community Support Team _ Qiuyun Yu
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

1 REPLY 1
v-qiuyu-msft
Community Support
Community Support

Hi @gauravp,

 

Based on my understanding, you have 8 columns, each column has 0-6 values. You can to count value for each column when values more than 0. Then use counted vales to create Pareto chart, right?

 

Assume the sample data table like below:

 

1.PNG

 

1. Select all columns, then click Unpivot Columns.

 

2.PNG
2. Filter out value 0 from Value column.

 

3.PNG
3. Click Group By, return count values.

 

4.PNG

 

Apply the change, back to the report, create a calculated column like below:

 

Cumulative % = var CumulativeCount = SUMX(FILTER('Table2','Table2'[Attribute]<=EARLIER(Table2[Attribute])),'Table2'[Count])
var Total=CALCULATE(SUM(Table2[Count]),ALL(Table2))
return
DIVIDE(CumulativeCount,Total)

 

6.PNG7.PNG

 

You can download attached pbix file to see if it meet your requirements.

 

Reference:

Pareto Charting in PowerBI

 

Best Regards,
QiuyunYu

 

 

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

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.