Forum Discussion

Smamwise's avatar
Smamwise
Frequent Visitor
2 years ago

Pareto 80/20 as summary matrix visualization

Hi!

 

Is it possible to create a matrix visualization in Power Bi such as this?

 

The rows should be calculated and make use of filters and slicers.

80 Supplier should include top 80 % of suppliers based on purchase amount.

20 Supplier should include bottom 20 % of suppliers based on purchase amount.

 

The columns should be calculated and make use of filters and slicers.

80 Item should include top 80 % of items based on purchase amount.

20 Item should include bottom 20 % of Items based on purchase amount.

 

Values then would include purchase value, % of all purchases, number of distinct items, number of distinct suppliers and number of purchase rows. These are the easy part.

 

The difficulty is getting the row and columns to work. I have a measure that works fine but if I make it as an calculated column, then the filters and slicers stop working. Any advice would be greatly appriceated.

 

The measures, 

 

80/20 Item Cumulative % = 
/*calculates the purchase % of one item from all items*/
VAR thisProduct = PurchaseInvoice[Purchase Amount]
VAR allProducts =
    CALCULATE(PurchaseInvoice[Purchase Amount], ALL('Item'))
RETURN
    CALCULATE(
        PurchaseInvoice[Purchase Amount],
        FILTER(ALL('Item'), PurchaseInvoice[Purchase Amount] >= thisProduct)
    ) / allProducts


80/20 Item = 
/*groups the cumulative % to 80 or 20*/
IF( [80/20 Item Cumulative %] <=0.8,"80","20")

 

 

I am fairly close, but the problem is the columns and rows since they dont work with filters / slicers.

So this is not correct.

 

 

1 Reply