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
KC1234
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

 

 

8 REPLIES 8
ImkeF
Super User
Super User

The Italians have a pattern for the dynamic version with measures like you've requested here: https://www.daxpatterns.com/abc-classification-dynamic/

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

Ashish_Mathur
Super User
Super User

Hi,

 

Please show the exact result which you are expecting.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@KC1234

 

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 () )
)

 


Regards
Zubair

Please try my custom visuals
Greg_Deckler
Super User
Super User

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


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

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 = 
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.

 

 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

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

 

 

Hi,

 

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


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.