Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
hi,
i have a dax measure for week-to-date (WTD) as follows:
VAR CurrentDate = LASTDATE( 'Calendar'[Date] )
VAR WeekDayNo = WEEKDAY( LASTDATE( 'Calendar'[Date]), 3)
VAR CWTD = CALCULATE(
SUM( Sales[Amount],
DATESBETWEEN(
'Calendar'[Date],
DATEADD(
CurrentDate,
-1*WeekDayNo,
DAY),
CurrentDate)
)
RETURN
CALCULATE(
CWTD,
DATEADD (
'Calendar'[Date],
-7,
DAY))
Solved! Go to Solution.
@Anonymous , please refer if my blogs on the same can help
Power BI — WTD
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123
Hi @Anonymous ,
You may create measures like DAX below.
WTD =
CALCULATE (
SUM ( Sales[Amount] ),
FILTER (
ALL ( 'Calendar' ),
WEEKNUM ( 'Calendar'[Date] ) = WEEKNUM ( MAX ( 'Calendar'[Date] ) )
&& WEEKDAY ( 'Calendar'[Date] ) <= WEEKDAY ( MAX ( 'Calendar'[Date] ) )
)
)
LWTD =
CALCULATE (
SUM ( Sales[Amount] ),
FILTER (
ALL ( 'Calendar' ),
WEEKNUM ( 'Calendar'[Date] )
= WEEKNUM ( MAX ( 'Calendar'[Date] ) ) - 1
&& WEEKDAY ( 'Calendar'[Date] ) <= WEEKDAY ( MAX ( 'Calendar'[Date] ) )
)
)
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
You may create measures like DAX below.
WTD =
CALCULATE (
SUM ( Sales[Amount] ),
FILTER (
ALL ( 'Calendar' ),
WEEKNUM ( 'Calendar'[Date] ) = WEEKNUM ( MAX ( 'Calendar'[Date] ) )
&& WEEKDAY ( 'Calendar'[Date] ) <= WEEKDAY ( MAX ( 'Calendar'[Date] ) )
)
)
LWTD =
CALCULATE (
SUM ( Sales[Amount] ),
FILTER (
ALL ( 'Calendar' ),
WEEKNUM ( 'Calendar'[Date] )
= WEEKNUM ( MAX ( 'Calendar'[Date] ) ) - 1
&& WEEKDAY ( 'Calendar'[Date] ) <= WEEKDAY ( MAX ( 'Calendar'[Date] ) )
)
)
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , please refer if my blogs on the same can help
Power BI — WTD
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.