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

This expression not work Sum({<year=${vYear1}, COMPANY = {"=Rank(Sum({<year = ${vYear1}>} sales)) <= 5"}>} sales)


Hi All


Below expression work fine :-


Sum({<year={2016}, COMPANY = {"=Rank(Sum({<year = {2016}>} sales)) <= 5"}>} sales)


I want to make the above expression dynamic , so that user can select the year they like :-


Sum({<year=${vYear1}, COMPANY = {"=Rank(Sum({<year = ${vYear1}>} sales)) <= 5"}>} sales)


I also create a ver vYear1 assign as 2016


I also create a buttom when user click it will select year = 2016


But it does not work. Hope some one can help me where go wrong with the expression ?



Paul


1 Solution

Accepted Solutions
shilpan
Partner Ambassador
Partner Ambassador

That's because you had set wrong trigger for those buttons.  See attached QVW

View solution in original post

3 Replies
marcus_sommer

This syntax is wrong ... year=${vYear1} ... and should be ... year={$(vYear1)} ...


- Marcus

marcus_sommer

Try this:

Sum({<year={$(vYear1)}, COMPANY = {"=Rank(Sum({<year={$(vYear1)}>} sales))<= 5"}>} sales)

shilpan
Partner Ambassador
Partner Ambassador

That's because you had set wrong trigger for those buttons.  See attached QVW