Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I would like to use the variable LongMonthNames in my script, but I cannot figure out what the syntax should be.
Month(OrderDate) AS Month,
This is what I currently have. What do I need to change the variable to so I can utilize the Long Month Names variable that is created in the Main script?
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';
try using only this
SET MonthNames='January;February;March;April;May;June;July;August;September;October;November;December';
hope this helps
No, I do not want to do that. I want to use the LongMonthNames variable.
then use this:
=Date(Month,'MMMM')
hope this helps
What is the point of QlikView adding the LongMonthNames variable if I can't use it?
Date(Month,'MMMM') will call the longmonthname according your script!
You do not reference the field name in that code...
But by transforming into 'MMMM' Qlikview calls the Variable LongMonthNames in Script!
Okay, I used the following code:
Date(OrderDate,'MMMM') AS Month
I am getting multiple values for the months whereas I am only expecting one value for each month name. When I use the original code,
Month(OrderDate) AS Month
I only get each individual month name.
Also, is the function called MonthsName used for long month names? It appears to require 2 parameters.
try
Dual( date(OrderDate, 'MMMM'), Month(OrderDate)) AS Month