Table which I have has month-wise counts from July,2018. Data goes untill December 2020.
I have a slicer which selects the month and the year for the other visuals on the page.
I need to create a line chart which dynamically shows last 2 years of data or 24 months of data. So say suppose if I select, November 2020 from slicers, I need to see a graph that starts from November 2018 and ends at Novemberenter image description here 2020. I need to have a text - "Current year" and "Previous Year" in the legend which is also another challenge that I am facing.
Below is the image for reference.
Please help me write the correct DAX