Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

count expression

Dear All,

CustomerNET BalanceCredit Amount
AA10050

BB

300300
CC400100
DD200200

I have to write an expression to find the count of those customer which have (NET Balance - Credit amount) = 0

3 Replies
its_anandrjs

New Update please check now

Write Expression like

=Count(if( (([NET Balance]) - ([Credit Amount])) = 0,  Customer ))

lironbaram
Partner - Master III
Partner - Master III

hi

if the net balance and credit amount are calculated for each customer with sum function then use

sum(aggr(if(sum([Net Balance])-sum([Credit Amount])=0,1,0),Customer))

MK_QSL
MVP
MVP

=Count(DISTINCT {<Customer = {"=SUM([NET Balance])-SUM([Credit Amount])>0"}>}Customer)

Update : Sorry, I misread your question...

=Count(DISTINCT {<Customer = {"=SUM([NET Balance])-SUM([Credit Amount])=0"}>}Customer)