Forum Discussion
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/2017 | EDDD | 500 | PENCILS | $ 11,888.30 |
| 10/5/2017 | EDDD | 500 | PENCILS | $ 12,707.73 |
| 12/29/2016 | EDDD | 500 | PENCILS | $ 11,821.04 |
| 11/16/2016 | EDDD | 500 | PENCILS | $ 11,217.60 |
| 9/28/2016 | EDDD | 500 | PENCILS | $ 4,319.97 |
| 9/14/2016 | CFOVE | 5016 | BOOKS | $ 201.00 |
| 2/3/2017 | CFOVE | 5018 | BOOKS | $ 790.40 |
| 12/21/2017 | TRMF | 5112 | PAINTINGS | $ 395.00 |
| 10/31/2017 | TRMF | 2345 | PAINTINGS | $ 395.00 |
| 12/15/2016 | TRMF | 1298 | PAINTINGS | $ 395.00 |
| 12/15/2016 | TRMF | 5021 | PAINTINGS | $ 395.00 |
| 11/2/2016 | TRMF | 5021 | PAINTINGS | $ 395.00 |
| 6/14/2017 | HON | 5131 | CRAYONS | $ 422.40 |
| 2/22/2016 | HON | 5131 | CRAYONS | $ 140.80 |
| 5/25/2017 | PARK | 5134 | PENS | $ 925.80 |
| 5/4/2017 | PARK | 5134 | PENS | $ 925.80 |
| 12/29/2016 | PARK | 5134 | PENS | $ 925.80 |
| 12/21/2016 | PARK | 5134 | PENS | $ 925.80 |
| 7/14/2017 | MMCM | 5137 | CRAYONS | $ 5,425.00 |
8 Replies
- Ashish_MathurSuper User
Hi,
Please show the exact result which you are expecting.
- Zubair_MuhammadCommunity Champion
If you want your ABC analysis to respond to filters you can use ALLSELECTED in Greg's formula
i.e.
Percentile = DIVIDE ( SUM ( Vendors[ SPEND ] ), CALCULATE ( SUM ( Vendors[ SPEND ] ), ALLSELECTED () ) )
- ImkeFCommunity Champion
The Italians have a pattern for the dynamic version with measures like you've requested here: https://www.daxpatterns.com/abc-classification-dynamic/
- Greg_DecklerCommunity Champion
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: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
- KC1234Regular Visitor
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.
- Greg_DecklerCommunity Champion
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 = DIVIDE(SUM(Vendors[Spend]),CALCULATE(SUM(Vendors[Spend]),ALL(Vendors)))
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.