Demo Data Package
Demo Data Package Scenarios
3. Select Accounts that don't have any Orders in the last 30 days
note the scenario below uses data from the deselect demo data package see docid 5 cozdtg0nwmlmeufrmbz scenario you want to get the company name of all accounts that don't have any orders in the last 30 days https //www youtube com/watch?v=4itxtsgdu4e\&list=plfs7 dts7jwyhwe scy5z4qvgbh2ilspj\&index=4 or follow the steps below note this scenario uses feature formula's in subqueries, which is available in deselect plus and advanced 1\ input on the selections overview screen, click on new to create a new selection drag data extension deselect demo accounts to the selected data extensions section drag field id to the filters section choose criteria not in results from the dropdown select data extension deselect demo orders choose field accountid now we have indicated we want to get the accounts whose id does not appear in the orders data extension however, we want to filter on only the orders from the last 30 days, so we'll limit the results of the orders data extension click on the funnel icon on the newly created filter in the modal that opens up drag field date to the filters section choose criteria is after or on choose date filter type relative choose 30 , days , before now 2\ output hit the create data extension button, enter a name, eg accounts without recent orders, and press save select the following fields by either double clicking on them or dragging them to the section on the right company name from deselect demo accounts click save data extension 3\ preview when you click run preview on the preview screen, a results table will be shown with field company name from deselect demo accounts the results table shows only accounts that don't have an order in the last 30 days note we did not enter an exact date; whenever we run this selection, we'll always get accounts without an order in the last 30 days as the date comparison is dynamic and based on the time of execution of the query