In my attached PBIX sample file, I’ve made up some random data for dates beginning 1/1/2017 through today. I’m trying to show cumulative amounts for the last two years alongside YTD amounts for this year. In my sample, I’m seeing that, but the YTD line shows flat through the end of this year. I need it to stop at the end of the last full month while still showing the lines for the full year on the previous years’ lines.
The only way I can think of is dropping the YTD TY line to 0 from March because that is the last month that contains values. Then make a constant black line on value 0 to hide the YTD TY line where it’s 0. It’s not the most elegant way I think, but maybe it’s useful.
Thanks for the great solutions! Right before seeing your replies, I came up with a working solution that is a similar line of thinking although less elegantly written:
Could not agree more. Four different people with exactly the same tools, four completely different solutions. That’s why I find this endlessly fascinating…