cancel
Showing results for
Did you mean:
Frequent Visitor

## 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
Microsoft

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.
Microsoft

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.
Frequent Visitor

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]))

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!

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!

Announcements

#### 2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

#### Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

#### Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Top Kudoed Authors