Demo Data Package
Demo Data Package Scenarios
16. Get the Accounts of which the highest value Order has an amount of more than 1000 euro
note the scenario below uses data from the deselect demo data package see docid 5 cozdtg0nwmlmeufrmbz note the scenario below uses data from the deselect demo data package scenario you want to get the company name of all accounts of which the highest value order has an amount of more than 1000 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 highest value order has an amount of more than 1000 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 greater than click on the formula icon, and choose maximum you'll see the formula icon turn green and the field name change to maximum of amount for the value, choose 1000 we will now be filtering based on the maximum of the amounts of the orders per account; this has to be greater than 1000 2\ output hit the create data extension button, enter a name, eg accounts with large 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 highest value order has an amount of more than 1000 euro