Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Week Number as per months

Hi Data Naughts,

 

I have a data set which has Date in it, I want to make a column which can show me a value like July-1st week, July-2nd week and so on. What I could do is take weeknum(Date) but i am getting July-30 week, July-31 week and so on as my output. Please help me out.

 

Thanks in advance

Priyanshu

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

4 REPLIES 4
mahoneypat
Microsoft Employee
Microsoft Employee

Please try this expression in a calculated column on your Date table.

 

Month Week = var weekstart = 'Date'[Date] - WEEKDAY('Date'[Date])
return FORMAT(weekstart, "MMMM") & " - Week " & ROUNDUP(Day(weekstart)/7,0)
 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please try this:

Column = FORMAT('Table'[Date],"mmmm")&" - "&WEEKNUM('Table'[Date],2)&" Week"

v-xuding-msft_0-1596508671315.png

 

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anand24
Super User
Super User

Hi @Anonymous ,

 

You can achieve it using below steps in Power Query:

 

1. From 'Date' column, create a 'Name of Month' column

2. From 'Date' column, create a 'Week of Month' column

3. Add a conditional column with below cases:

Date_Cases.PNG

Note: Week of Month here is the column created/added in step 2

 

4. Merge 'Name of Month'(created in Step 1) and 'Custom'(Created in Step 3) with custom seperator hyphen/dash(-)

5. Optional Step: Remove 'Week of Month'(created in Step 2)

 

Final Result:

Date_Cases2.PNG

 

If this post solved your query, mark this post as solution and give a thumbs up !!!

amitchandak
Super User
Super User

@Anonymous ,

refer

https://community.powerbi.com/t5/Desktop/Week-of-month-from-Calendar/td-p/189691

https://community.powerbi.com/t5/Desktop/WeekNumber-In-a-Month/td-p/158133

 

In power query

https://docs.microsoft.com/en-us/powerquery-m/date-weekofmonth

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.