what you could do is filter on the criteria if there was an Invoice receipt of the vendors in the last 2 Years.
For example, you could create a OLAP with the Vendor Name for example as a Dimension to show all Vendors:
Then you need the following component filter to get only the ones which are fulfilling the criteria:
FILTER “LFA1”.“LOEVM” NOT IN (‘X’);
FILTER EKBE.VGABE NOT IN (‘2’) AND YEAR(EKBE.BUDAT) > 2018;
The first one is your deletion flag and the second one filters on no invoice receipt in the last 2 Years
Data Science Team