Forum Discussion
Paddhof1984
9 years agoHelper III
YTD
Hello, I am curious whether there is anyone who can help me out with following situation: I do have 3 tables, each of them contains the total turnover from a specific year: 2015 (whole ye...
Paddhof1984
9 years agoHelper III
What I can provide you with the overview of the tables and their relationsships. Or which type of sample data do you exactly need?
I have the tables:
RE2015 (turnover for 2015)
RE2016 (turnover for 2016)
RE2017act (turnover for 2017 for the current year).
For 2015 and 2016 (always the past years) the same turnover periods should be shown as far as the turnover period is actually shown for the current year.
Daniil
9 years agoKudo Kingpin
Thanks Paddhof1984. I would try something like this:
2015 YTD =
CALCULATE (
SUM ( RE2015[QTY] ),
INTERSECT ( VALUES ( RE2015[Month] ), VALUES ( RE2017act[Month] ) )
)Does this help?
- Paddhof19849 years agoHelper III
- Daniil9 years agoKudo Kingpin
Paddhof1984
Made a typo, sorry. This should work:2015 YTD = CALCULATE ( SUM ( RE2015[QTY] ), INTERSECT ( VALUES ( RE2015[Month] ), VALUES ( RE2017act[Month] ) ) )- Paddhof19849 years agoHelper 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?