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
sublog
Helper III
Helper III

Week to date Calculation group

Trying to figure out the syntax for a week-to-date measure based on Sunday being the first day of the week. 

 

Does anyone have anything that could point me in the right direction? 

 

Here is what I have done for MTD:

 

CALCULATE ( SELECTEDMEASURE (), CALCULATETABLE ( DATESMTD ( 'Calendar'[Date] ), 'Calendar'[IsPast] = TRUE () ) )
1 REPLY 1
themistoklis
Community Champion
Community Champion

@sublog 

 

I think you can find the answer in the following link:

https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...

 

For Sunday being the first day make sure in the weekday formula to put the number 1 (as return type).

e.g. WEEKDAY('Date'[Date],1)

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.