Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
bhavvibudagam
Creator II
Creator II

Max(MonthYear) not working

Hi Experts,

Can any one please help me on below requirement.

I have calculated MonthYear field in the back end like below.

MonthName(Date(Date#(Date,'YYMMDD'),'DD/MM/YYYY')) as MonthName

Getting the filter correctly like below.But when I have taken Max(MonthName) getting Feb 2018 as number format.

Please help on getting actaul format like Feb 2018.

Thanks in advance.

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

It is because the in background Qlik Stores it as number.

You can try this two things.

1. Maxstring(MonthName)

2. Monthname(Max(MonthName))


Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

4 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

It is because the in background Qlik Stores it as number.

You can try this two things.

1. Maxstring(MonthName)

2. Monthname(Max(MonthName))


Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
vijetas42
Specialist
Specialist

try MaxString(MonthName)

Yousef_Amarneh
Partner - Creator III
Partner - Creator III

I would prefer always to use the below to do such things

Year(Date)&Num(Month(Date),'00')

So the result will be 201602, 201603 ....etc.. and here you will get the maximum number since this column is integer

Yousef Amarneh
shiveshsingh
Master
Master

Try this

Monthname(Max(MonthName))

or use interpret date# to change the format as required.