Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello.
1) I got this Dax to create a Calendar table:
Solved! Go to Solution.
Hi @Anonymous ,
If I understand correctly, the issue is that you want to add week to the calendar and modify the start dates. Please try the following methods and check if they can solve your problem:
1.Add a new column to the table.
Calendar =
ADDCOLUMNS(
CALENDAR(DATE(2022,1,31), DATE(2024,12,31)),
"Year", YEAR([Date]),
"Week", WEEKNUM([Date], 2)
)
2.Modify the start month.
Calendar =
ADDCOLUMNS(
CALENDAR(DATE(YEAR(TODAY()) - 1, 7, 1), DATE(YEAR(TODAY()), 6, 30)),
"Year", YEAR([Date]),
"Week", WEEKNUM([Date], 2)
)
Best Regards,
Wisdom Wu
Hi @Anonymous ,
If I understand correctly, the issue is that you want to add week to the calendar and modify the start dates. Please try the following methods and check if they can solve your problem:
1.Add a new column to the table.
Calendar =
ADDCOLUMNS(
CALENDAR(DATE(2022,1,31), DATE(2024,12,31)),
"Year", YEAR([Date]),
"Week", WEEKNUM([Date], 2)
)
2.Modify the start month.
Calendar =
ADDCOLUMNS(
CALENDAR(DATE(YEAR(TODAY()) - 1, 7, 1), DATE(YEAR(TODAY()), 6, 30)),
"Year", YEAR([Date]),
"Week", WEEKNUM([Date], 2)
)
Best Regards,
Wisdom Wu
1. WEEKNUM
2. You would do that manually as you already showed.
General advice: Any custom calendar (especially with fiscal weeks) is better created and maintained outside of Power BI, for example as an Excel file on a SharePoint.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
146 | |
85 | |
66 | |
52 | |
47 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |