Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
I need to build a Fiscal Calendar that Starts on a Monday, has 52 weeks and runs from July to June.
I have a current date table with the date, week, month and year, and have even managed to get the fiscal month in as July being month 1 and June month 12. The issue im having is with adding week 1 to 52 and for week 1 to start on a Monday.
Is anyone able to assist?
i have added the normal week number :
Solved! Go to Solution.
@ClaireBear
There is no straight forward way in power bi to set the custom weeknumber, you might need to work with some dax.
Try create the following column, check attached pbix for detail.
Week number =
var WkNo= RANKX(FILTER('Table',WEEKNUM([Date],2)>=27 &&WEEKNUM([Date],2)<=53),WEEKNUM([Date],2),,ASC,Dense)
Return
IF(WEEKNUM([Date],2)>=27&&WEEKNUM([Date],2)<=53,WkNo,WEEKNUM([Date],2)+26)
Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@ClaireBear , refer if my video on FY week can help.
https://www.youtube.com/watch?v=euIC0dgGTNM
Another way is
mod(quotient(datediff(min(Date[Date]), [Date], day),7),52)+1
Assuming min(Date[Date]) is start of the calendar is a monday in july
This solution is showing January as week 1 and not July.
Thanks
@ClaireBear
There is no straight forward way in power bi to set the custom weeknumber, you might need to work with some dax.
Try create the following column, check attached pbix for detail.
Week number =
var WkNo= RANKX(FILTER('Table',WEEKNUM([Date],2)>=27 &&WEEKNUM([Date],2)<=53),WEEKNUM([Date],2),,ASC,Dense)
Return
IF(WEEKNUM([Date],2)>=27&&WEEKNUM([Date],2)<=53,WkNo,WEEKNUM([Date],2)+26)
Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
83 | |
70 | |
60 |
User | Count |
---|---|
150 | |
115 | |
104 | |
89 | |
65 |