Hi All,
I have a set of data and where i need to filter it for last 12months can someone help on this. and also, it should act as a dynamic filter.
For Example: current month is 08.2018 then it should filter data from 08.2017 to 07.2018
below is my scenario.
Input
| Cons | Calendar Month |
| A | 08.2018 |
| A | 07.2018 |
| A | 06.2018 |
| A | 05.2018 |
| A | 04.2018 |
| A | 03.2018 |
| A | 02.2018 |
| A | 01.2018 |
| A | 12.2017 |
| A | 11.2017 |
| A | 10.2017 |
| A | 09.2017 |
| A | 08.2017 |
| A | 01.2016 |
| C | 03.2018 |
| C | 02.2018 |
| C | 01.2018 |
| C | 12.2017 |
| C | 11.2017 |
| C | 10.2016 |
out put
| Cons | Calendar Month |
| A | 07.2018 |
| A | 06.2018 |
| A | 05.2018 |
| A | 04.2018 |
| A | 03.2018 |
| A | 02.2018 |
| A | 01.2018 |
| A | 12.2017 |
| A | 11.2017 |
| A | 10.2017 |
| A | 09.2017 |
| A | 08.2017 |
| C | 03.2018 |
| C | 02.2018 |
| C | 01.2018 |
| C | 12.2017 |
| C | 11.2017 |