Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Can I use load inline to create a mapping from numeric month to month name

I am creating some filters for my form using listboxes. one of the listboxes is pulling from month field, which has the format of MM/DD/YYYY. I would like to change it so it gives the 3 letter acronym instead like Jan. can I use an inline load table to create a mapping to use in the listbox?

Thanks,

Mike

1 Solution

Accepted Solutions
sunny_talwar

Although you can, you don't really need to do this... You can just do this

Month(DateField) as Month

and then use Month field as your list box field

View solution in original post

5 Replies
Anonymous
Not applicable
Author

date(date#(FIELD,'MM/DD/YYYY'),'MMM')

sunny_talwar

Although you can, you don't really need to do this... You can just do this

Month(DateField) as Month

and then use Month field as your list box field

antoniotiman
Master III
Master III

Hi Mike,

You don't need Mapping Table and ApplyMax.

Sumply in script :

Month(DateField) as Month

Month is Dual Field (Text,Num)

Text(Month)  -> Jan

Num(Month) -> 1

Regards,

Antonio

Not applicable
Author

One thing I forgot to mention, I am first using a qlikview worksheet to load the data ignto a qvd file, and then my main dashboard file just loads the qvd file. the script in the load file is:

TBL_PNL:

LOAD BUS_UNIT,

     SOURCE_TYPE,

     MONTH,

     EXPENSE_TYPE,

     LINE_TYPE,

     LINE_SUBTYPE,

     AMOUNT,

     EXPN_VAL

FROM

P_L_Report_Updatedv2.xlsx

(ooxml, embedded labels, table is Template);

STORE TBL_PNL into '..\PNL Dashboard\PNLData.qvd';

and then I am just loading that PNLData.qvd in my load script on the main file. i still need the MONTH column displayed as the MM/DD/YYYY format in my pivot table as well. Do I need to do these extra statements in my load file I am assuming? Is there a way I can pull MONTH twice and have one run that date conversion you mentioned above?

Not applicable
Author

Ok, I got it to work. I put that code in like you suggested into my load dashboard and then loaded that new field into my design dashboard. Thanks for the help!