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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply

Start week Date since Saturday.

Tryign to do a basic week start date from staurday and end at friday. 

I was using this but its not giving the right result.
Any suggestions? 

Start of week saturday to friday = [Date] - WEEKDAY([Date],2) -1
1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @eshanpacheriwal ,

 

Please try:

Start of week saturday to friday =

var _a = WEEKDAY([Date],2)

return IF(_a<=5,[Date]-_a-1,[Date]-_a+6)

Output:

vjianbolimsft_0-1658140128973.png

 

Best Regards,

Jianbo Li

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

2 REPLIES 2
v-jianboli-msft
Community Support
Community Support

Hi @eshanpacheriwal ,

 

Please try:

Start of week saturday to friday =

var _a = WEEKDAY([Date],2)

return IF(_a<=5,[Date]-_a-1,[Date]-_a+6)

Output:

vjianbolimsft_0-1658140128973.png

 

Best Regards,

Jianbo Li

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

jcalheir
Solution Supplier
Solution Supplier

Can you provide some prints of the table whit wrong results?

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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