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: 
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!