Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi,
I have a table with different dates in it : 01/04/2020 and 01/05/2020. I need to create a table of all the dates in the months of the before mentioned date. So first I need to get the distinct months and then I need to get all the dates in those months. Is this possible to do in DirectQuery mode please? Thanks
Solved! Go to Solution.
Hi @Anonymous ,
Try to use below dax expression to create a new table:
New Table= CALENDAR(MIN('table'[date]),MAX('table'[date]))
Hi @Anonymous ,
Try to use below dax expression to create a new table:
New Table= CALENDAR(MIN('table'[date]),MAX('table'[date]))
@Anonymous , you create using a calendar, That will convert it into the mixed mode.
You can have one in the database and mark it as date table here.
refer
Or
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/
CALENDAR
| User | Count |
|---|---|
| 76 | |
| 36 | |
| 31 | |
| 29 | |
| 26 |