Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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