Skip to main content
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

6 Replies
robert_mika
Master III
Master III

Your data are in String format try

Max(right(Yourfield,2))

(no attachment just screen dump attached)

tresesco
MVP
MVP

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))