Forum Discussion
Week on Week comparison in a Clustered Column Chart
- 6 years ago
Assuming you have a Date table with a WeekNumber column, you should be able to use a measure like this that should give nonblank/shown values for the last 13 weeks.
NewMeasure = VAR thisweek = WEEKNUM ( TODAY () ) RETURN CALCULATE ( [Your Measure], KEEPFILTERS ( FILTER ( ALL ( 'Date'[WeekNumber] ), 'Date'[WeekNumber] <= thisweek && 'Date'[WeekNumber] >= thisweek - 12 ) ) )If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
Assuming you have a Date table with a WeekNumber column, you should be able to use a measure like this that should give nonblank/shown values for the last 13 weeks.
NewMeasure =
VAR thisweek =
WEEKNUM ( TODAY () )
RETURN
CALCULATE (
[Your Measure],
KEEPFILTERS (
FILTER (
ALL ( 'Date'[WeekNumber] ),
'Date'[WeekNumber] <= thisweek
&& 'Date'[WeekNumber] >= thisweek - 12
)
)
)
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
Hello mahoneypat
I have implemented your solution and thus far appears to be working exactly as I hoped. Still need to do a bit more testing and validation. But wanted to send along my thanks, appreciation and of course Kudos!
Best Regards,