Forum Discussion
Pareto analysis
Hello people, I need help! I want to do an 80/20 analysis I made the table below with the following DAX:
However, when I put an attribute of the product code, the classification (rank) is lost and distorts my analysis, as follows:
How do I make an analysis correct applying attributes into the product code (ex.: types, family and others)?
Thanks in advanced
3 Replies
- vanessafvgCommunity Championwhat are you expecting to see in your results? can you please provide an example
- William_MorenoHelper II
Hello, thanks for your reply!
I expected the ranking to remain the same, it means that the highest value keeps number 1 and not have repeated numbers.
If you notice it ranks by the type of product, but the type is just an attribute.
I would wish that the return it was like the table below:
Code Rank Inventory ($) Inventory ($) Acc Type 7497646 1 6.885.839,97 6.885.839,97 Raw Material 7740618 2 3.344.454,84 10.230.294,81 Raw Material 2857582 3 2.833.388,22 13.063.683,03 Packaging 7738914 4 2.715.712,53 15.779.395,56 Raw Material 7096692 5 2.632.064,61 18.411.460,17 Raw Material 7587468 6 2.316.370,53 20.727.830,70 Raw Material 2191808 7 2.171.456,07 22.899.286,77 Packaging 7652283 8 2.128.575,63 25.027.862,40 Raw Material 7922779 9 1.666.849,23 26.694.711,63 Raw Material 7322027 10 1.653.872,94 28.348.584,57 Raw Material 7007089 11 1.580.017,92 29.928.602,49 Raw Material 2956524 12 1.284.415,56 31.213.018,05 Packaging - vanessafvgCommunity Champion
try this
Rank =
CALCULATE (
RANKX ( ALLSELECTED ( Register[Code] ), CALCULATE ( [Inventory value] ) ),
ALLEXCEPT ( Register, Register[Code] )
)