Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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 )))
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |