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.
Hi
I want to create a custom week column for my financial year (August to July).
FY 2019 is 1st Aug 2019 to 31st July 2020
FY 2020 is 1st Aug 2020 to 31st July 2021
First of August is the first day a week. Second week starts on 8th of August and so on...
Help me create a column.
Thanks in advance.
Solved! Go to Solution.
@Anonymous ,
Try columns like
Date = CALENDAR(date(2014,01,01),date(2020,12,31))
Week Start Date with Year = var _1 =QUOTIENT(DATEDIFF(STARTOFYEAR('Date'[Date],"7/31"),'Date'[Date],DAY),7) return STARTOFYEAR('Date'[Date]) + if(_1<52,_1,51)*7
Week No = var _1= QUOTIENT(DATEDIFF(STARTOFYEAR('Date'[Date],"7/31"),'Date'[Date],DAY),7)+1 return if(_1<52,_1,52)
Week Day = MOD(DATEDIFF('Date'[Week Start Date with Year],[Date],DAY),7)+1
@Anonymous ,
Try columns like
Date = CALENDAR(date(2014,01,01),date(2020,12,31))
Week Start Date with Year = var _1 =QUOTIENT(DATEDIFF(STARTOFYEAR('Date'[Date],"7/31"),'Date'[Date],DAY),7) return STARTOFYEAR('Date'[Date]) + if(_1<52,_1,51)*7
Week No = var _1= QUOTIENT(DATEDIFF(STARTOFYEAR('Date'[Date],"7/31"),'Date'[Date],DAY),7)+1 return if(_1<52,_1,52)
Week Day = MOD(DATEDIFF('Date'[Week Start Date with Year],[Date],DAY),7)+1
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 |
---|---|
125 | |
111 | |
73 | |
65 | |
46 |