Hi guys, need your help on filtering the rows based on conditions. Here is my sample data.
| Country | Category | Buy/Sold | Model |
| US | Online | Buy | XACV |
| US | On Premise | Buy | XACV |
| US | On Premise | Buy | HSID |
| US | Online | Sold | JVIC |
| US | On Premise | Buy | JVIC |
| US | Hybrid | Sold | HVUC |
| US | Online | Sold | UTVS |
| US | Hybrid | Buy | KVIC |
| US | Online | Sold | IOCL |
| US | Hybrid | Sold | IOCL |
| US | On Premise | Buy | IOCL |
I want to show only the rows that have same Model and are Sold then Bought again. So in this case, I want to show only the rows below from above data.
| Country | Category | Buy/Sold | Model |
| US | Online | Sold | JVIC |
| US | On Premise | Buy | JVIC |
| US | Online | Sold | IOCL |
| US | Hybrid | Sold | IOCL |
| US | On Premise | Buy | IOCL |
I can only filter on duplicate value on model but I'm not sure how to filter data based on rows. I have thousands of rows of data and need to build a model that can do this. Any help would be great. Thanks!!