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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
SatyaPaleti
Creator III
Creator III

Need to get Max week

Hi Friends,

I am having following Data it shows all the weeks in 2015. I want to show max week among that

I am using Max function but it's not working

week.PNG

Here is the attachment & Qvw

Thank you,

Satya

Labels (1)
6 Replies
robert_mika
MVP
MVP

Your data are in String format try

Max(right(Yourfield,2))

(no attachment just screen dump attached)

tresB
Champion III
Champion III

Max() won't work here, because your field is a text one. Try MaxString().

Anonymous
Not applicable

try sth like at script level:

=mid(Week,6,7) as Week

and then at UI level like: max(week) or max(mid(Week,6,7))

SatyaPaleti
Creator III
Creator III
Author

Here in My Data Max week is 2015-45

How to get that

Anonymous
Not applicable

Try this one :


max(mid(Week,6,7))

Anonymous
Not applicable

If it is into string then:

=max(mid(num(Week),6,7))