Forum Discussion
YTD
Thanks Paddhof1984. I would try something like this:
2015 YTD =
CALCULATE (
SUM ( RE2015[QTY] ),
INTERSECT ( VALUES ( RE2015[Month] ), VALUES ( RE2017act[Month] ) )
)Does this help?
- Daniil9 years ago
Kudo Kingpin
Paddhof1984
Made a typo, sorry. This should work:2015 YTD = CALCULATE ( SUM ( RE2015[QTY] ), INTERSECT ( VALUES ( RE2015[Month] ), VALUES ( RE2017act[Month] ) ) )- Paddhof19849 years ago
Helper III
Daniil Thanks for your support. One more thing:
Is there any possibility to add a measure which cumulates the monthly turnover for the ytd measure?
So I can compare ytd turnover for 2016 to the current to 2017?
- Daniil9 years ago
Kudo Kingpin
For this, I would append all three RE tables into one and have a proper date type column and a calendar table -- then the easiest way to create such a measure would be using Quick Measures.
- Paddhof19849 years ago
Helper III
I have another point regarding the intersection of values: the Intersection of old years compared to the new year works perfect.
Now I do have following measure:
TO2017 cumul. = TOTALYTD(SUM(RE2017act[2017])|'Calendar'[Date])
How can I intersect this one, so that only months are shown, where turnover is generated? In this case, it still shows values for the rest of the year and for months, which still are to come but where no turnover has been created until yet.