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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Week of the month

I want to show weeks of the month, but each new week need to start with monday.
This is the following example I want to reproduce.

week.png

I tried to do this :
weekinmonth = 1 + WEEKNUM ( TableName[Date],2 ) - WEEKNUM ( STARTOFMONTH ( TableName[Date] ),2 )

=> But in my case, I have duplicated dates so it doesn' work

Thanks for help

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

You can remove the duplicate date firstly in power query by clicking Remove Rows-> Remove Duplicates.

Capture.PNG 

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

By removing duplicates, I will loose data from other columns

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.