Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

Help create simple ABC-analysis in PowerBI visual

Hi,

 

I'm fairly new to PowerBI, and tried to scan all resources available and also with "trial and error" without success on the below question, so now hoping for your help to find a good solution. 

 

I have a table with the following structure (More complex in reality):

ProductnameCategory lvl 1Category lvl 2Sales
Product 1"Category lvl 1" 1"Category lvl 2" 15
Product 2"Category lvl 1" 1"Category lvl 2" 15
Product 3"Category lvl 1" 1"Category lvl 2" 110
Product 4"Category lvl 1" 1"Category lvl 2" 110
Product 5"Category lvl 1" 1"Category lvl 2" 135
Product 6"Category lvl 1" 1"Category lvl 2" 135
Product 7"Category lvl 1" 1"Category lvl 2" 25
Product 8"Category lvl 1" 1"Category lvl 2" 25
Product 9"Category lvl 1" 1"Category lvl 2" 210
Product 10"Category lvl 1" 1"Category lvl 2" 210
Product 11"Category lvl 1" 1"Category lvl 2" 235
Product 12"Category lvl 1" 1"Category lvl 2" 235

 

And what I want to accomplish in my "visual" is a table/matrix looking like this: (Base on ABC-analysis, A= first 70%, B = 20%, C=10%)

Category lvl 1Category lvl 2ABC-classificationProductnameSalesSales%
"Category lvl 1" 1   200100%
 "Category lvl 2" 1  10050%
  A 7070%
   Product 53535%
   Product 63535%
  B 2020%
   Product 31010%
   Product 41010%
  C 1010%
   Product 155%
   Product 255%
 "Category lvl 2" 2  10050%
  A 7070%
   Product 113535%
   Product 123535%
  B 2020%
   Product 91010%
   Product 101010%
  C 1010%
   Product 755%
   Product 855%

 

I believe that I have solved the measure "Sales%" so that it aggregates on different levels etc, so what I need most is a pragmatic solution for the "static" ABC-analysis. (Should never change based on filtering etc.). 

 

Thanks in advance and hoping for your expertise in solving this.

 

BR

2 Replies