Forum Discussion
Rolling Total across different weeks
- 2 years ago
MHein17 , for such cases we use cumulative measures
example with date table used in measure, visual and filter
[Total Actual Occupied Units] + calculate( [Total Projected Move-Ins] - [Total Projected Move-Outs], filter(all(Date), Date[Date] <= Max(date[Date]) ) )
or
calculate([Total Actual Occupied Units]+ [Total Projected Move-Ins] - [Total Projected Move-Outs], filter(all(Date), Date[Date] <= Max(date[Date]) ) )
Same as inventory onhand calculation
Power BI Inventory On Hand: https://youtu.be/nKbJ9Cpb-Aw
MHein17 , for such cases we use cumulative measures
example with date table used in measure, visual and filter
[Total Actual Occupied Units] + calculate( [Total Projected Move-Ins] - [Total Projected Move-Outs], filter(all(Date), Date[Date] <= Max(date[Date]) ) )
or
calculate([Total Actual Occupied Units]+ [Total Projected Move-Ins] - [Total Projected Move-Outs], filter(all(Date), Date[Date] <= Max(date[Date]) ) )
Same as inventory onhand calculation
Power BI Inventory On Hand: https://youtu.be/nKbJ9Cpb-Aw
- MHein172 years agoFrequent Visitor
Hi Thank you for this. What if there are weeks where there is no Move Ins or Move Outs? These weeks revert back to the first week value