Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
Help me to create months-year based on my date in dashboard. My date is like below.
Date
14032018
Expected Output:
Jan-18
Feb-18
Mar-18
Apr-18
May-18
Jun-18
Jul-18
Aug-18
Sep-18
Oct-18
Nov-18
Dec-18
Thanks,
Durga
May be this
Table:
LOAD Date(AddMonths(YearStart(Today()), IterNo() - 1), 'MMM-YY') as MonthYear
AutoGenerate 1
While IterNo() <= 12;
May be this
Date(MonthStart(Date#(Date, 'DDMMYYYY')), 'MMM-YY') as MonthYear
Monthname will give a similar output except the year is YYYY not YY
MonthName(Date#(YourDateField, 'DDMMYYYY')) as MonthYear
Sunny my field Date is variable. Also please note that i need to write this in backend.
Sorry to missed to mention earlier.
I think my above response covers both the things you mentioned
Colin my field Date is variable. Also please note that i need to write this in backend.
I am not able to get the expected output. Can you please provide sample file.
please provide your sample data ?
try this sample
A:
load *,
Date(MonthStart(Date#(mydate, 'DDMMYYYY')), 'MMM-YY') as MonthYear;
LOAD * INLINE [
rate, test, mydate
1ssues, failed, 14032018
issues, incom, 15032018
NumDay, test, 16032018
NumDay, fsr, 17032018
];
Hi All,
Everyone saying the solution to get the output like below:
Mar-18
But I am expecting the output like below.
Expected Output:
Jan-18
Feb-18
Mar-18
Apr-18
May-18
Jun-18
Jul-18
Aug-18
Sep-18
Oct-18
Nov-18
Dec-18