I'm trying to create a measure which will incrementally subtract demand from supply based on rank. The ranks are already assigned and exist in the data (e.g., 0-100). Is there a way to do that in Power BI?
My target end state is a matrix visual that shows each product and it's rank on the left hand side and the materials the product uses as columns. The values in the matrix would show the remaining supply accounting for each unit of demand per product & rank. In the example below let's assume the demand for each product is 20 and we start with 100 units of supply in group 1; and 140 units of supply in Group 2.
One caveat is that the demand is tied to each product & ranking. Supply is only tied to each supply group.
Supply Group 1 | SupplyGroup 2
Rank 1 | Product 1 80 120
Rank 2 | Product 2 60 100
Rank 3 | Product 3 40 80
My target end state is a matrix visual that shows each product and it's rank on the left hand side and the materials the product uses as columns. The values in the matrix would show the remaining supply accounting for each unit of demand per product & rank. In the example below let's assume the demand for each product is 20 and we start with 100 units of supply in group 1; and 140 units of supply in Group 2.
One caveat is that the demand is tied to each product & ranking. Supply is only tied to each supply group.
Supply Group 1 | SupplyGroup 2
Rank 1 | Product 1 80 120
Rank 2 | Product 2 60 100
Rank 3 | Product 3 40 80