Skip to content

Instantly share code, notes, and snippets.

@treysmithdev
Created April 17, 2020 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save treysmithdev/885b26d7825669aa3de1b5abdae97da7 to your computer and use it in GitHub Desktop.
Save treysmithdev/885b26d7825669aa3de1b5abdae97da7 to your computer and use it in GitHub Desktop.
SET ThousandSep=',';
SET DecimalSep='.';
SET MoneyThousandSep=',';
SET MoneyDecimalSep='.';
SET MoneyFormat='$#,##0.00;-$#,##0.00';
SET TimeFormat='h:mm:ss TT';
SET DateFormat='M/D/YYYY';
SET TimestampFormat='M/D/YYYY h:mm:ss[.fff] TT';
SET FirstWeekDay=6;
SET BrokenWeeks=1;
SET ReferenceDay=0;
SET FirstMonthOfYear=1;
SET CollationLocale='en-US';
SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';
SET LongMonthNames='January;February;March;April;May;June;July;August;September;October;November;December';
SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';
SET LongDayNames='Monday;Tuesday;Wednesday;Thursday;Friday;Saturday;Sunday';
SET NumericalAbbreviation='3:k;6:M;9:G;12:T;15:P;18:E;21:Z;24:Y;-3:m;-6:μ;-9:n;-12:p;-15:f;-18:a;-21:z;-24:y';
month_map:
Mapping Load
SubField('$(MonthNames)',';') as month,
RowNo() as month_num
AutoGenerate
(1);
example:
Load
MakeDate(year,ApplyMap('month_map',month,Null())) as date,
ApplyMap('month_map',month,Null()) as month_number,
*
Inline [
month, year, qty
Jan, 2020, 10
Feb, 2020, 15
Mar, 2020, 5
Apr, 2020, 20
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment