Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
jgreen95
Contributor III
Contributor III

Count rows where Field 1 = field 2

I have a table and want to count the rows only where field 1 = field 2?

 

anyone who a function that works for this?

1 Reply
Stoyan_Terziev
Partner - Creator III
Partner - Creator III

Hello,

 

You want to do that on the Back-end or the front end? (I expect you need the number in one single cell, in a single column)

Back-end approach would be:

 

Count:

LOAD

SUM(Count) as Count

;

Load

If([Field 1]=[Field 2],1,0) as Count,

RowNo() as Index

RESIDENT SourceCounted

;