Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
LGS
New Member

Qty Roll Up from Row Qtys

Hi.  New Poster Here looking for some assistance.  Hopefully, it is something simple.  

 

Problem Summary: Attempting to run a forecast model using current inventory qtys, adding in incoming purchases (using arrival due date related to calendar), and taking away forecasted demand for each month.  The one thing we missed is the backorder qty.  While it is captured in the formula, the miss is we need to decrement the backorder from the projected inventory and show the backorders on a separate line. 

Formula being used:

 

Potential Backorder =
var maxdate = MAX('Inventory Report'[Data_Upload_Date])
var invqty = CALCULATE(SUM('Inventory Report'[Qty OH]), 'Inventory Report'[Data_Upload_Date]=maxdate)

var currentmonth = DATE(YEAR(TODAY()),MONTH(TODAY()),1)
var test = invqty + CALCULATE([Incoming Inventory - Demand Delta]), FILTER(ALL('Calendar'), AND('Calendar'[Date]>=currentmonth,'Calendar'[Date]<=MAX('Calendar'[Date]))))

return  if(ISFILTERED('Widget Master'[Widget]),if(test>=0, 0, test),
SUMX(SUMMARIZE('Widget Master', 'Widget Master'[Widget], "BO Proj", if(test>0,0, test)),SUM([BO Proj))
)

This is what I want:

LGS_2-1690826873674.png

This is what I am getting: 

LGS_1-1690826850491.png

 

The above tables are roll ups of Widgets. The breakdown table would look like this and it does when I drop in the Widgets but I loose the Widget detail when I remove the Widgets:

What I want:

LGS_3-1690827046768.png

What I get:

LGS_4-1690827432165.png

 

I appreciate any insight. 

 

LGS

 

 

 

0 REPLIES 0

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.