Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi all,
I am struggling to figure this out. Would really appreciate your help.
Scenario:
In the Stock overview matrix, I have total supply and total demand. The Gross Inventory = Total Supply - Total Demand and then the gross inventory for 202211 will be starting stock for 202212.
Gross Inventory Measure =
But the problem is sometimes I get the total demand -ve and at that time I do not want to include that total demand in the calculation. Then I want to take Forecasted demand from the Demand Matrix.
Thank you in advance!!
@goyalsa ,
Gross Inventory Measure =
Gross Inventory = CALCULATE([Total Supply]-if([Total Demand]>0,[Total Demand],0) , FILTER(ALLSELECTED(Dates),Dates[Loadingweek] <= MAX(Dates[Loadingweek])))
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 37 | |
| 33 | |
| 29 | |
| 27 |
| User | Count |
|---|---|
| 133 | |
| 104 | |
| 61 | |
| 59 | |
| 55 |