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
Anonymous
Not applicable

YTD Calculation is not working properly

Hi,

I have created a YTD measure using the below formula. But when I put them in the grid. Its showing the same result for Splitter Amount as well as for the Amount YTD. Could you please help me here throwing some lights on what would have gone wrong?

 

Amount YTD = CALCULATE(('Sales'[Splitter Amount]), DATESYTD('Calendar'[CLDR_DT]))

5 REPLIES 5
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

Could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

Could you please post me some sample data and your desired result?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi,

 

I have created a YTD measure using the below formula. But when I put them in the grid. Its showing the same result for Splitter Amount as well as for the Amount YTD. Could you please help me here throwing some lights on what would have gone wrong?

 

Amount YTD = CALCULATE(('Sales'[Splitter Amount]), DATESYTD('Calendar'[CLDR_DT]))

Sean
Community Champion
Community Champion

This is what your basic YTD Measure should look like.

YTD Measure =
CALCULATE (
    [measure],
    DATESYTD ( 'Date'[Date] )
)

It seems you are referencing a naked column. So just add the appropriate aggregation function.

Amount YTD =
CALCULATE ( 
SUM ( 'Sales'[Splitter Amount] ),
DATESYTD ( 'Calendar'[CLDR_DT] )
)

Hope this helps! Smiley Happy

Sean
Community Champion
Community Champion

This is what your basic YTD Measure should look like.

YTD Measure =
CALCULATE (
    [measure],
    DATESYTD ( 'Date'[Date] )
)

It seems you are referencing a naked column. So just add the appropriate aggregation function.

Amount YTD =
CALCULATE ( 
SUM ( 'Sales'[Splitter Amount] ),
DATESYTD ( 'Calendar'[CLDR_DT] )
)

Hope this helps! Smiley Happy

 

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