Forum Discussion
Anonymous
5 years agoNot applicable
Running Total Measure Works By Day but Not by Week
Hello, I am having a problem with displaying the running total of a column in a Line and Stacked Column Chart visual. This visual is to show forecasted and actual shipping numbers. The X axis h...
- Anonymous5 years ago
Edited:
[The Right Measure] = var MaxFiscalDate = MAX( 'Fiscal Calendar'[Calendar Date] ) var Result = CALCULATE( [Shipment Forecast], KEEPFILTERS( 'Fiscal Calendar'[Calendar Date] <= MaxFiscalDate ), ALLSELECTED( 'Fiscal Calendar' ) ) return ResultThere would be too much to explain about how ALLSELECTED works...
Greg_Deckler
Community Champion
5 years agoAnonymous What happens if you base your running total on Fiscal Week instead of the Date?
- Anonymous5 years agoNot applicable
Greg_Deckler
I tried changing the running total measure toOPs Ship Fcst running total in Fiscal Week =CALCULATE([Shipment Forecast],FILTER(ALLSELECTED('Fiscal Calendar'[Fiscal Week]),ISONORAFTER('Fiscal Calendar'[Fiscal Week], MAX('Fiscal Calendar'[Fiscal Week]), DESC)))
But the visual looks the same. In addition when drilling down by calendar date, it no longer shows the running total.