Input : In below dataset we want to exclude HBT and SPS records for the year 2018 and 2019.
SBU |
Year |
Amount |
AERO |
2017 |
1000 |
HBT |
2017 |
500 |
SPS |
2017 |
100 |
AERO |
2018 |
1000 |
HBT |
2018 |
500 |
SPS |
2018 |
100 |
AERO |
2019 |
1000 |
HBT |
2019 |
500 |
SPS |
2019 |
100 |
Output :
SBU |
Date |
Amount |
AERO |
2017 |
1000 |
HBT |
2017 |
500 |
SPS |
2017 |
100 |
AERO |
2018 |
1000 |
AERO |
2019 |
1000 |
Thanks for your help in advance