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.
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 |
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
Hi,
Please show the exact result which you are expecting.
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 () ) )
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
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.
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
Hi,
That image is just way to small. What do you have on the X-axis?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
97 | |
96 | |
81 | |
74 | |
66 |
User | Count |
---|---|
126 | |
105 | |
103 | |
81 | |
72 |