Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Count If One field is Equal to Another Field

Hello,

I am having trouble with my formula. I want the expression to only count the names that equal eachother in two fields.

Here is what I have:

=Count(if([Queried Provider]=[Responding Provider])

If anyone could give me advice it would be appreciated!

Thanks,

Erin

1 Solution

Accepted Solutions
sunny_talwar

May be this

-Count([Queried Provider]=[Responding Provider])

or this

Sum(If([Queried Provider]=[Responding Provider], 1, 0)

View solution in original post

3 Replies
sunny_talwar

May be this

-Count([Queried Provider]=[Responding Provider])

or this

Sum(If([Queried Provider]=[Responding Provider], 1, 0)

justinvchiang
Contributor III
Contributor III

I think you're missing a right parenthesis and also need to complete the if logic, such as if [Queried Provider]=[Responding Provider] then n else x or

Count(if([Queried Provider]=[Responding Provider],1))

Anonymous
Not applicable
Author

Thank you! The second expression worked!