Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
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: 
ttal7878
Creator
Creator

Add filter from expression

Hi,

Is it possible to add this expression into list box,

so the user will have the option to select 'Yes'/'No' filter?

=if(sum({<PendingsPayments.unique_num= P({<cctranzresponse={'000'},Age={0},Calendar_TRX.Calendar_Date,Calendar_TRX.Day,Calendar_TRX.Month,Calendar_TRX.Year>}PendingsPayments.unique_num)>}PendingsPayments.unique_num)>1,'No',

if(sum({<PendingsPayments.unique_num= P({<cctranzresponse-={'000'},Age={0},Calendar_TRX.Calendar_Date,Calendar_TRX.Day,Calendar_TRX.Month,Calendar_TRX.Year>}PendingsPayments.unique_num)>}PendingsPayments.unique_num)>1,'yes'))

1 Solution

Accepted Solutions
Chanty4u
MVP
MVP

try to use aggr,

=aggr(if(sum({<PendingsPayments.unique_num= P({<cctranzresponse={'000'},Age={0},Calendar_TRX.Calendar_Date,Calendar_TRX.Day,Calendar_TRX.Month,Calendar_TRX.Year>}PendingsPayments.unique_num)>}PendingsPayments.unique_num)>1,'No',

if(sum({<PendingsPayments.unique_num= P({<cctranzresponse-={'000'},Age={0},Calendar_TRX.Calendar_Date,Calendar_TRX.Day,Calendar_TRX.Month,Calendar_TRX.Year>}PendingsPayments.unique_num)>}PendingsPayments.unique_num)>1,'yes')),Dimension)

View solution in original post

3 Replies
Chanty4u
MVP
MVP

try to use aggr,

=aggr(if(sum({<PendingsPayments.unique_num= P({<cctranzresponse={'000'},Age={0},Calendar_TRX.Calendar_Date,Calendar_TRX.Day,Calendar_TRX.Month,Calendar_TRX.Year>}PendingsPayments.unique_num)>}PendingsPayments.unique_num)>1,'No',

if(sum({<PendingsPayments.unique_num= P({<cctranzresponse-={'000'},Age={0},Calendar_TRX.Calendar_Date,Calendar_TRX.Day,Calendar_TRX.Month,Calendar_TRX.Year>}PendingsPayments.unique_num)>}PendingsPayments.unique_num)>1,'yes')),Dimension)

tresesco
MVP
MVP

Yes. Only thing is, you have to use an aggr() like:

=Aggr( If(Sum(.....)), Dim1, Dim2,..)

ttal7878
Creator
Creator
Author

Thank you!