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! It's time to submit your entry. Live now!
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! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 49 | |
| 30 | |
| 25 | |
| 23 |
| User | Count |
|---|---|
| 128 | |
| 104 | |
| 56 | |
| 39 | |
| 31 |