Skip to content

Instantly share code, notes, and snippets.

@levi-turner
Created February 11, 2020 18:01
Show Gist options
  • Save levi-turner/46192367556cb38f5c4dccf06c047be4 to your computer and use it in GitHub Desktop.
Save levi-turner/46192367556cb38f5c4dccf06c047be4 to your computer and use it in GitHub Desktop.
Orders:
Load
*,
Date((OrderDate) + Floor(Rand()*45)) as ShipDate; // preceding load which loads after the previous calcs so we can add values to OrderDate
Load
chr(round(25 * rand() + 65)) & chr(round(25 * rand() + 65)) & chr(round(25 * rand() + 65)) as Customer, // Customer name between AAA and ZZZ
round(1000000 * Rand()) as Target , // Target Revenue between 0 and 1,000,000
Date((Today()-600) + Floor(Rand()*600)) as OrderDate // Random Dates
AutoGenerate 50;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment