Demo Data Package
Demo Data Package Scenarios
17. Get the Accounts of which the lowest value Order has an amount of less than 100 euro
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 of which the lowest value order has an amount of less than 10 euro 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 on only the accounts of which the lowest value order has an amount of less than 100 euro click on the funnel icon on the newly created filter in the modal that opens up drag field amount to the filters section choose criteria smaller than click on the formula icon, and choose minimum you'll see the formula icon turn green and the field name change to minimum of amount for the value, choose 100 we will now be filtering based on the minimum of the amounts of the orders per account; this has to be smaller than 100 2\ output hit the create data extension button, enter a name, eg accounts with small 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 of which the lowest value order has an amount of less than 100 euro