Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
For a couple of reports I need a calendar table that generates all the dates from the day before the calculation to 6 months after. For now I have used the Calendar() dax command to do so, but when setting the dynamic dates for yesterday and six months after, dateadd and parallelperiod do not account for the change in month or year. I understand it can also be done in power query but I do not have enough experience with its functions to make one doing so.
Example: The calendar table calculated on 2020-09-01 should have all dates between and including 2020-08-31 and 2021-03-01
Solved! Go to Solution.
@iulian_buhat , not very clear, you can create a calendar with dates like
Date = calendar(Min(Table[Date]) , Eomonth( max(Table[Date])+180,0))
Date = calendar(Min(Table[Date]) , Eomonth( today() + 180,0))
you can create various combinations.
@iulian_buhat , not very clear, you can create a calendar with dates like
Date = calendar(Min(Table[Date]) , Eomonth( max(Table[Date])+180,0))
Date = calendar(Min(Table[Date]) , Eomonth( today() + 180,0))
you can create various combinations.
While not exactly what I was looking for, I did manage to create it like so
@iulian_buhat , yes, the days you can add as an integer. Eomonth we use move to the end of the month and we play around with value and do +1 to get the start of the month . Thanks for sharing what you have done.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
37 | |
25 | |
19 | |
14 | |
8 |
User | Count |
---|---|
69 | |
48 | |
44 | |
19 | |
15 |