Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to get count of matching columns in straight table

Hi I created a straight table like this

x y

1 1

1 2

2 5

2 2

I want to count where x and y have equal values . I want to compare only straight table data not entire data.

Please help

4 Replies
tresesco
MVP
MVP

In the straight table take an expression like: =Count(Total If(x=y,x))

MayilVahanan

HI

In load, Try like this

Load If(x=y, 1) as Flag from tablename;

Then in expression

Count({<Flag = {1}>} x)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
antoniotiman
Master III
Master III

See attachment  

Regards

Not applicable
Author

Hi,

Try this Expression

=Sum(Total if(x=y,1,0))

Regards,

Vivek