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.
Hello,
I'm creating a DimDate in power bi desktop with dynamic intervals.
For exp : FIRSTDATE=X ; LASTDATE=X+5 years
To be more clear: FIRSTDATE=01/04/2020 ; LASTDATE=01/04/2025
In my case i'm facing a problem to add 5 years to my Starting date,this is my formula
@FZOU ,
try
DimDate = CALENDAR (FIRSTDATE(Sales[SalesCalendar]);date(year(FIRSTDATE(Sales[SalesCalendar]))+5,month(FIRSTDATE(Sales[SalesCalendar])),day(FIRSTDATE(Sales[SalesCalendar]))))
or
DimDate =
var _1 =FIRSTDATE(Sales[SalesCalendar])
return
CALENDAR (_1 ;date(year(_1 )+5,month(_1 ),day(_1 )))
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 |
---|---|
119 | |
105 | |
77 | |
74 | |
52 |
User | Count |
---|---|
145 | |
109 | |
107 | |
90 | |
64 |