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! Learn more

Reply
amaniramahi
Helper V
Helper V

TOTALYTD not working

I have read the similar posts but nothing worked with me.

 

I have a table with months (the end of each month date) and the sales target for each month.

I need to calculate the YTD target 

 

the table is  below, YTD target should be 52, but when I try 

TOTALYTD(sum(Target[Target]),Target[Month].[Date]) it gives me the year total = 105

 

targets.png

1 ACCEPTED SOLUTION

Hi @amaniramahi 

TOTALYTD does not work the way you expect it to. Check it out here

Try this instead:

Measure =
CALCULATE (
SUM ( Target[Target] ),
Target[Month] <= TODAY (),
Target[Month] >= DATE ( YEAR ( TODAY () ), 1, 1 )
)

View solution in original post

4 REPLIES 4
MauriceMecowe
Resolver II
Resolver II

Hi @amaniramahi 

 

You will need a continuous date selection for this to work.

 

Sincerely,

Maurice

Hi @amaniramahi 

TOTALYTD does not work the way you expect it to. Check it out here

Try this instead:

Measure =
CALCULATE (
SUM ( Target[Target] ),
Target[Month] <= TODAY (),
Target[Month] >= DATE ( YEAR ( TODAY () ), 1, 1 )
)

Thank @AlB ! that worked !

apology but I am new to power bi, I guess I will go through the whole website you provided!

 

Thanks again

@MauriceMecowe  thanks for the reply.

I already have created a datetable with continuous dates and created a relationship between the datetable and the dates in this table. didn't work either 😞

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