Forum Discussion
MagnusSthlm
Helper I
8 years agoRolling quarter
Hi!
I'm trying to create a chart with rolling quarter. I'm stuck. Today is Q1 but I want to present the graph as let's say you are in December it should display 4 bars Q4, Q1, Q2, Q3 in that order. I've Googled and haven't find anything. Any help where to look or how to go about it?
/Magnus
Drag [Date] to Axis, expand to the Quarter level and add measure below. It takes advantage of Show Categories With No Data.
Measure = VAR d = MIN ( 'Calendar'[Date] ) VAR n = DATEDIFF ( d, TODAY (), QUARTER ) RETURN IF ( n >= 1 && n <= 4, 1 )
3 Replies
- v-chuncz-msft
Community Support
Drag [Date] to Axis, expand to the Quarter level and add measure below. It takes advantage of Show Categories With No Data.
Measure = VAR d = MIN ( 'Calendar'[Date] ) VAR n = DATEDIFF ( d, TODAY (), QUARTER ) RETURN IF ( n >= 1 && n <= 4, 1 )- MagnusSthlm
Helper I
I'll give it a shot although I don't know if that is what I'm after.
- v-chuncz-msft
Community Support