Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Vendor ABC Analysis

Hi all, 

I am pretty new to Power BI and so far I am enjoying it, however, I am having a great difficulty in using Dax. 

I want to create a Vendor ABC analysis by spend and can't seem to figure out how to. My data is very large but I have included a small sample below. Is there a tutorial somewhere I can review?

thanks for all your help. 

Date               Vendor      Item        Category             SPEND 

10/31/2017EDDD500PENCILS $    11,888.30
10/5/2017EDDD500PENCILS $    12,707.73
12/29/2016EDDD500PENCILS $    11,821.04
11/16/2016EDDD500PENCILS $    11,217.60
9/28/2016EDDD500PENCILS $      4,319.97
9/14/2016CFOVE5016BOOKS $          201.00
2/3/2017CFOVE5018BOOKS $          790.40
12/21/2017TRMF5112PAINTINGS $          395.00
10/31/2017TRMF2345PAINTINGS $          395.00
12/15/2016TRMF1298PAINTINGS $          395.00
12/15/2016TRMF5021PAINTINGS $          395.00
11/2/2016TRMF5021PAINTINGS $          395.00
6/14/2017HON5131CRAYONS $          422.40
2/22/2016HON5131CRAYONS $          140.80
5/25/2017PARK5134PENS $          925.80
5/4/2017PARK5134PENS $          925.80
12/29/2016PARK5134PENS $          925.80
12/21/2016PARK5134PENS $          925.80
7/14/2017MMCM5137CRAYONS $      5,425.00



Super User II
Super User II

The Italians have a pattern for the dynamic version with measures like you've requested here:

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Super User III
Super User III



Please show the exact result which you are expecting.

Ashish Mathur



If you want your ABC analysis to respond to filters you can use ALLSELECTED in Greg's formula



Percentile =
    SUM ( Vendors[ SPEND ] ),
    CALCULATE ( SUM ( Vendors[ SPEND ] ), ALLSELECTED () )



Please try my custom visuals

Super User IV
Super User IV

Kudos for posting sample data. That being said, I have no idea what you want as far as output. Can you clarify?


Please see this post regarding How to Get Your Question Answered Quickly:


@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!

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

Proud to be a Super User!

Thanks so much for your quick response Greg. What i am trying to do is develop an ABC analysis for vendors by spend such that 

ABC Analysis

A = 10% of suppliers

B = 20% of suppliers

C = 70% of suppliers



by creating either a column with each vendor classified A, B, C or using a measure and be able to graph it. 

OK, forgive my ignorance of ABC Vendor analysis. I'm still not 100% with you. You can get each vendor's % of spend with this formula:


Percentile = 

But, I get the feeling that's not exactly what you want. Let me do some searching on ABC Vendor Analysis to see if I can understand it or if you could provide details that would be cool.




@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!

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

Proud to be a Super User!

here is a sample result i am expecting. I am able execute all the calculations in the table in excel 2016 and load in Power BI for visualization, however, i would like to be able to execute all the calculations using measures or other method in Power BI from my raw data rather than do the double work 

Doc11 (2).jpg





That image is just way to small.  What do you have on the X-axis?

Ashish Mathur

Helpful resources

PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Top Solution Authors
Top Kudoed Authors