Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Mahamed_Qlik
Specialist
Specialist

date format in source

Hi All,

 

I have "Month" field in my database which has values as below:

MonthNumber
07
06
05
04

 

When I use Month(MonthNumber) in qliksense, It is showing incorrect month name.

for example -
if I select 07 then it is showing month name as "Jan" not July.

Kindly help.

Regards,
Mahamed

Labels (1)
3 Replies
Mark_Little
Luminary
Luminary

Hi @Mahamed_Qlik 

The first place i would check is on the main tab in the script editor.

Check that 

SET FirstMonthOfYear=1;

If this have been change you could get the result you are seeing

 

Mahamed_Qlik
Specialist
Specialist
Author

Hi Mark,

It is set as you mentioned:

mahamedfaijan_0-1661328194559.png

 

justISO
Specialist
Specialist

Hi, try something like this:

Month( Date(Date#(MonthNumber,'MM')) ) or

date(Date#(MonthNumber,'MM'), 'MMM')  - 'MMM' here defines short month name, use 'MMMM' if you need long one