Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Hello,
I'm trying to create a column with custom week numbers (Operating periods) that end in the dates below:
1/1/2022 - 1/12/2022 - Week 1
1/13/2022 - 1/19/2022 - Week 2
1/20/2022 - 1/26/2022 - Week 3
Until the last week of the year.
Any ideas on how I can accomplish this? I a pprecite your help!
Solved! Go to Solution.
Hi @NPC
Create a new column with below DAX
Column =
var __days = DATEDIFF("2022-1-5",Dates[Date],DAY)
var __customWeekNum = IF(__days>0,ROUNDUP(__days/7,0),1)
return
"Week " & __customWeekNum
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Hi @NPC
Create a new column with below DAX
Column =
var __days = DATEDIFF("2022-1-5",Dates[Date],DAY)
var __customWeekNum = IF(__days>0,ROUNDUP(__days/7,0),1)
return
"Week " & __customWeekNum
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
This works. Thank you!
@NPC , You can get Thrusday to Wednesday week here
Any Weekday Week - Start From Any day of Week
https://community.powerbi.com/t5/Community-Blog/Any-Weekday-Week-Decoding-Date-and-Calendar-2-5-Powe...
You need to have additional condition for first week
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 63 | |
| 58 | |
| 46 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 119 | |
| 116 | |
| 37 | |
| 34 | |
| 30 |