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 Everyone,
Can anyone help me with creating a new table that starts with today's date every time I refresh the report.
I want to build this because I don't want unwanted dates starting from tomorrow in the Date slicer and I should be able to use between function within the slicer.
I tried creating a new column with below-given code in a table known as calendar (generated with calendarauto( ) dax) but then I can't use between a function within the slicer. This code is creating a new column within the calendar table, leaving the date starting from tomorrow as blank.
Solved! Go to Solution.
Hi @Anonymous
Bit confusing, you asked for a calendar that starts with today's date but you mean ending with today's date.
Cal = CALENDAR(DATE(2015,1,1), TODAY())
Regards
Phil
Proud to be a Super User!
Hi @Anonymous
Bit confusing, you asked for a calendar that starts with today's date but you mean ending with today's date.
Cal = CALENDAR(DATE(2015,1,1), TODAY())
Regards
Phil
Proud to be a Super User!
Did you try to use CALENDAR this way instead of CALENDARAUTO?
NewDateTable = CALENDAR(TODAY(), DATE(2021,12,31)) // put whatever end date your want or calculate it dynamically from your fact table
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Hi Pat,
I tried the code it didn't work.
I want to create a calendar table which starts 01/01/2015 and ends today.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 58 | |
| 45 | |
| 42 | |
| 20 | |
| 18 |