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
Currently it works fine because 1st Jan 23 is a Sunday, however next year it will be Monday. How do i make sure that start date within my CALENDAR() function always falls on a Monday e.g. 7 Jan 24 (Sunday)?
Solved! Go to Solution.
Hello,
You can create a new calculated column in the table containing the date column that you want to modify. You can do this by right-clicking on the table and selecting "New column".
Start Date =
DATE(YEAR([Date]), 1, 1) + MOD(8 - WEEKDAY(DATE(YEAR([Date]), 1, 1)), 7)
Hello,
You can create a new calculated column in the table containing the date column that you want to modify. You can do this by right-clicking on the table and selecting "New column".
Start Date =
DATE(YEAR([Date]), 1, 1) + MOD(8 - WEEKDAY(DATE(YEAR([Date]), 1, 1)), 7)
To be honest, I don't understand what you want.
show me what you want
some_date_table = CALENDAR(<start date is first sunday of January every year>, <last sunday of the year; i suppose I could add 364 days>)
How would I go on about doing the first argument?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 38 | |
| 36 | |
| 28 | |
| 28 |
| User | Count |
|---|---|
| 126 | |
| 88 | |
| 78 | |
| 66 | |
| 65 |