March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I am using the below DAX code:
Solved! Go to Solution.
@sandip , try like
CALENDAR(minx(TBL_Date,TBL_Date[Start Time]),maxx(TBL_Date,TBL_Date[End Time]))
or
CALENDAR(minx(TBL_Date,[Start Time]),maxx(TBL_Date,[End Time]))
Hi @sandip ,
The range of dates is from the specified start date to the specified end date, inclusive of those two dates. You write two columns in the calendar function rather than two dates.
The formulas that @amitchandak suggests should work perfectly. Or you could just write like this:
TBL_Calendar =
CALENDAR ( MIN ( TBL_Date[Start Time] ), MAX ( TBL_Date[End Time] ) )
Creating Calendar Table in Power BI using DAX Functions
@sandip , try like
CALENDAR(minx(TBL_Date,TBL_Date[Start Time]),maxx(TBL_Date,TBL_Date[End Time]))
or
CALENDAR(minx(TBL_Date,[Start Time]),maxx(TBL_Date,[End Time]))
Hi,
Actually your second expression works well for me like below:
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
128 | |
90 | |
75 | |
56 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |