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: 
avantime
Creator II
Creator II

Number of clients with payment term greater than 15 days and total revenue smaller than 100$

Hi,

I have a problem resolving this issue. Right now I have:

=count(distinct {<[Client name]={"=sum(Invoices)<100"}>}{<PaymentTerm={"=PaymentTerm>15"}>} [Client name])

Payment term of over 15 days is working. The sum of invoices is not taken into account. What am I doing wrong?

Thank you!

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Only use a single set expression (single pair of {..} ) and combine your field modifier like

=count(distinct {<[Client name]={"=sum(Invoices)<100"}, PaymentTerm={"=PaymentTerm>15"}>} [Client name])


(maybe


=count(distinct {<[Client name]={"=sum(Invoices)<100"}, PaymentTerm={">15"}>} [Client name])


works the same)


A Primer on Set Analysis

View solution in original post

2 Replies
swuehl
MVP
MVP

Only use a single set expression (single pair of {..} ) and combine your field modifier like

=count(distinct {<[Client name]={"=sum(Invoices)<100"}, PaymentTerm={"=PaymentTerm>15"}>} [Client name])


(maybe


=count(distinct {<[Client name]={"=sum(Invoices)<100"}, PaymentTerm={">15"}>} [Client name])


works the same)


A Primer on Set Analysis

avantime
Creator II
Creator II
Author

You... rock! Thank you so much!