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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
arusanah
Creator II
Creator II

help with Expression

Date(Date#(left(subfield(FileName("AB_CD_EF_GH_IJ_KL_Monthly_SEPTEMBER_2016.xlsx"),'_',8),8),'MMMYYYY'),'MMM YYYY')

i'm trying to generate new field  from a above file name , which  should have sept 2016 as value. my expression throws error . can somebody help me here .

1 Solution

Accepted Solutions
sunny_talwar

Try this may be:

=MonthName(Date#(Capitalize(

Subfield('AB_CD_EF_GH_IJ_KL_Monthly_SEPTEMBER_2016.xlsx', '_', 8)) & '-' &

SubField(Subfield('AB_CD_EF_GH_IJ_KL_Monthly_SEPTEMBER_2016.xlsx', '_', 9), '.', 1), 'MMMM-YYYY'))

Or

=MonthName(Date#(Capitalize(

Subfield(FileName(), '_', 8)) & '-' &

SubField(Subfield(FileName(), '_', 9), '.', 1), 'MMMM-YYYY'))

View solution in original post

3 Replies
sunny_talwar

Try this may be:

=MonthName(Date#(Capitalize(

Subfield('AB_CD_EF_GH_IJ_KL_Monthly_SEPTEMBER_2016.xlsx', '_', 8)) & '-' &

SubField(Subfield('AB_CD_EF_GH_IJ_KL_Monthly_SEPTEMBER_2016.xlsx', '_', 9), '.', 1), 'MMMM-YYYY'))

Or

=MonthName(Date#(Capitalize(

Subfield(FileName(), '_', 8)) & '-' &

SubField(Subfield(FileName(), '_', 9), '.', 1), 'MMMM-YYYY'))

arusanah
Creator II
Creator II
Author

Thank you Sunny !!!

sunny_talwar

No problemo