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: 
nurulizzaty
Contributor III
Contributor III

How to sort latest YEAR and MONTH in text and image chart

I wanted to sort latest YEAR and MONTH in my text and image chart. But I cannot find the syntax. 

Really need your help guys...

year.PNG

Labels (1)
7 Replies
zzyjordan
Creator II
Creator II

Hi,
have you tried use MonthName(max(your Date field)) in your measure expression?
ZZ
nurulizzaty
Contributor III
Contributor III
Author

I cannot use function MAX and i don't know why, it shows error...

zzyjordan
Creator II
Creator II

can you give some more information about the error, e.g. screenshot or your sample data?

ZZ
nurulizzaty
Contributor III
Contributor III
Author

error1.PNGerror.PNG

Above are the screenshots.....

zzyjordan
Creator II
Creator II

The expression should be like this

MonthName(max(INCIDENT_MONTH))

The bold part is the qlik sense function, and I assume your field [INCIDENT_MONTH] is a datetime type.

ZZ

nurulizzaty
Contributor III
Contributor III
Author

error1.PNGerror.PNG

but then, it shows this...

zzyjordan
Creator II
Creator II

can you attace the qvf ?
ZZ