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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors