Forum Discussion
Line up PY by Weekday vs CY by Weekday
- 9 years ago
Hi codyraptor,
The dates are coming from a calendar.Are PY and CY calculate columns in your calendar table? If that is the case, you should be able to use the formula below to add new calculate column in your calendar table to get the offseted CY. :smileyhappy:
New PY = 'Calendar'[CY] + WEEKDAY ( 'Calendar'[CY] - WEEKDAY ( 'Calendar'[PY] ) )
Regards
Hi codyraptor,
The dates are coming from a calendar.
Are PY and CY calculate columns in your calendar table? If that is the case, you should be able to use the formula below to add new calculate column in your calendar table to get the offseted CY. :smileyhappy:
New PY = 'Calendar'[CY] + WEEKDAY ( 'Calendar'[CY] - WEEKDAY ( 'Calendar'[PY] ) )
Regards
- codyraptor9 years ago
Resolver I
This works perfect!! Thanks so much!!
- codyraptor9 years ago
Resolver I
K...Now I'm running into another issue. When I place my PY counts in then they do not line up with the New PY dates. The counts are still reflecting a year ago based on the chosen date. I've tried filtering a measure by New PY date, but I'm not able to get it to work. Thoughts?