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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
UditJ
Helper III
Helper III

7 Days a week from Monday

I am using this formula to calculate 7 days a week = 

 
 = DIVIDE(CEILING(DAY('Calendar'[Date]),7),7)

UditJ_0-1696419765890.png

Now what i want is to start the 7 days week calcualtion from monday. Below is what i have calcualted start day of week 

UditJ_1-1696419868569.png

need to replace 1 , 2, 3,4, 5,6 and 7 by number 1 and so on.. as these days represent 1st week. Can this be done ? 

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

Hi @UditJ 

You can create the following column

Column 2 =
VAR a =
    WEEKNUM ( [Date], 2 )
VAR b =
    WEEKNUM ( EOMONTH ( [Date], -1 ) + 1, 2 )
RETURN
    a - b + 1

Output

vxinruzhumsft_0-1696558155565.png

 

Best Regards!

Yolo Zhu

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

1 REPLY 1
v-xinruzhu-msft
Community Support
Community Support

Hi @UditJ 

You can create the following column

Column 2 =
VAR a =
    WEEKNUM ( [Date], 2 )
VAR b =
    WEEKNUM ( EOMONTH ( [Date], -1 ) + 1, 2 )
RETURN
    a - b + 1

Output

vxinruzhumsft_0-1696558155565.png

 

Best Regards!

Yolo Zhu

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

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors