Forum Discussion
Anonymous
6 years agoNot applicable
YTD Cumulative for weekly figures
I am trying to create measure for the cumulative columes. Below is the DAX code I wrote. As you can see in the last colume of the visual, it is still showing by week numbers not cumulative by week...
Anonymous
6 years agoNot applicable
I didn't actually. I had no idea what a Calendar is. A regular calendar? In columnar format? Add as a new colume?
Jen
Anonymous
6 years agoNot applicable
Thanks a lot for your reply.
- Pmorg736 years ago
Post Patron
It would be worth your while quickly researching creating calendars (loads on youtube - check Enterprise DNA). It gives you a new table that you make a relationship to your data table with. Then you have Time inteligence (as they call it) and you can measure against a set calendar range, using days, months, years or whatever.
eg
create Table button and enter this:
calendar = CALENDAR(DATE(2018,04,01),date(2021,03,31))from here create columns for months, weeks, Financial year months, month numbers. Lots and lots of options that you adjust for your requirements. I typically have a month number; financial year month number; year; quarter, Day number; Day of week numbereg -month number = month('calendar'[Date])Day = DAY('calendar'[Date])- Anonymous6 years agoNot applicable
Checked calendar table out. Great!