Demo Data Package
Demo Data Package Scenarios
18. Get Accounts with more than 1 Order
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 have more than one order 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 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 appears in the orders data extension however, we want to filter only the accounts with more than 1 order click on the fx button on the created filter keep the formula at its default (count) choose criteria more than keep the value at its default (1) we will now be filtering based on the number of orders per account; this has to be more than 1 2\ output hit the create data extension button, enter a name, eg accounts with more than 1 order, 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 have more than 1 order