Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
126 | |
113 | |
71 | |
65 | |
46 |