How to Show the Last N Months by making use of Parameter?
1. First we have to crate the parameter for the N months. As shown below.
2. Now Drag the Order Date into column self and change year to MY(order date) by right click and select the More options and choose the Month/Year option and click on Apply and then click on OK.
3.Now create the calculation for the Last N months. As shown below.
5. Now change the parameter value then it will show that many number of Months at visualization level, as shown the below output.