Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
kunkumnaveen
Specialist
Specialist

how to write max yoy value expression in a textbox

How All,

                  I have to display max YOY increase value

Untitled.png

to get max YOY increase value which is (67%) in 2016 i wrote below expression in text box ,but i am getting -0 value

Expression:  =num(Max(Aggr((Sum(value)-Above(Sum(value)))/Above(Sum(value)), year)),'###0')

some thing is wrong with this expression

can any suggestion plz



thanks


22 Replies
avinashelite

Above doesn't work in the text box ..that is the issue

kunkumnaveen
Specialist
Specialist
Author

any alternative expression to get max yoy value

RonaldDoes
Partner - Creator III
Partner - Creator III

Hi Naveen,

Can you share your QVW?

kunkumnaveen
Specialist
Specialist
Author

PFA qvw file

kunkumnaveen
Specialist
Specialist
Author

i have attach the file

kunkumnaveen
Specialist
Specialist
Author

Any help in writing the epression plz

prma7799
Master III
Master III

Please try like this in your text object

=Num(( sum({<year = {$(=max(year))} >}value) - sum({<year = {$(=max(year)-1)} >}value)) / (sum({<year = {$(=max(year)-1)} >}value))*100,'#.##')

avinashelite

check the attachment

kunkumnaveen
Specialist
Specialist
Author

Thanks for your reply ,

it looks like ,that your expression  will alway take max year value only ,for the above example it gives exact output

but  in case if  YOY  value of 2015 is more then  2016 value still your expression will show 2016 value even though it has to be 2015 value ....