Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
aniketsr
Creator
Creator

Help in Aggr() with Variable as a parameter

Hi,

Iam passing a variable in Aggr() function as parameter,but the value that i get is Zero.

Iam also attaching a sample QVW.

1 Solution

Accepted Solutions
mayankraoka
Specialist
Specialist

Hi Aniket,

Attached update app.I am able to fetch the value.

Regards,

Mayank !

View solution in original post

5 Replies
mayankraoka
Specialist
Specialist

Hi Aniket,

Just put = to your variable(vValueSelected) where it is defined(CTRL+ALT+V).

Regards,

Mayank

aniketsr
Creator
Creator
Author

I did it but did not work

mayankraoka
Specialist
Specialist

Hi Aniket,

Attached update app.I am able to fetch the value.

Regards,

Mayank !

Kushal_Chawda

try with single quotes

'$(vValueSelected)'

suryaa30
Creator II
Creator II

Hi Please use below expression.

num(Sum(Aggr(RangeSum(Above(TOTALsum(Expense)/1000,0,12)),$(=$(vValueSelected)))))

answer.PNG