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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Week Calculations

Hi Team ,

 

Need help on how to calculate how many week will be there in a month. Example Month Septmber need week date like 

01/09/2019 ,07/09/2019, 13/09/2019.

 

Thanks & Regards

Shashank

1 ACCEPTED SOLUTION
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

You could try the formulas below. The measure calculats that how many weeks in the month. If you want to get the fisrt day for per week, you could try the formula of "First day of week".

 

Week of Month = 1 + WEEKNUM ( 'Table'[Date] ) - WEEKNUM ( STARTOFMONTH ( 'Table'[Date] ) )
Measure = DISTINCTCOUNT('Table'[Week of Month])

First day of week = ('Table'[Date]-WEEKDAY('Table'[Date],1)+1)

4.PNG

 

Note:  "Week of Month" and "First day of week" are calculated columns.  I attached my sample that you can have a try.

 

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.

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.

View solution in original post

4 REPLIES 4
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

You could try the formulas below. The measure calculats that how many weeks in the month. If you want to get the fisrt day for per week, you could try the formula of "First day of week".

 

Week of Month = 1 + WEEKNUM ( 'Table'[Date] ) - WEEKNUM ( STARTOFMONTH ( 'Table'[Date] ) )
Measure = DISTINCTCOUNT('Table'[Week of Month])

First day of week = ('Table'[Date]-WEEKDAY('Table'[Date],1)+1)

4.PNG

 

Note:  "Week of Month" and "First day of week" are calculated columns.  I attached my sample that you can have a try.

 

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.

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.
Anonymous
Not applicable

Thanks working fine

Tahreem24
Super User
Super User

Hello @Anonymous ,

 Please find the DAX formula for 3 different measures:

 

  1. Start_Week = 

FORMAT(

(Table[DATE]-WEEKDAY(Table[DATE],1)

+1),

"DD-MMM-YY"

)

  1. End_Week =

FORMAT(

(Table[DATE]-WEEKDAY(Table[DATE],1)

+7),

"DD-MMM-YY"

)

  1. Week Range = Table[Start_Week]&" To "&Table[End_Week]

 

Please accept this as a solution so other can make the use of it.

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Hi @Anonymous ,

 

If my answer helped you so please mark it as a solution so other can use it.

 

Thanks!

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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