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: 
Daniel1908
Creator
Creator

Compare same text in three columns and count a different one

Hello Together, 

I am looking for a solution to compare the same text in three columns and count a different one. 

For example:

If= Supplier A is equal to Supplier B and Product Key is "TH" count Material

Daniel1908_1-1616773251716.png

Thanks for your help.

Kind Regards, 
Daniel

 

 

1 Solution

Accepted Solutions
MayilVahanan

HI Daniel,

You can add another value with comma separator.

=Count({<Prod={'TH'}, SupC -={698758, 698452} >} If(SupA=SupB, Mat))

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

View solution in original post

6 Replies
rubenmarin

Hi, you can try with =Count({<Prod={'TH'}>} If(SupA=SupB, Mat))

Daniel1908
Creator
Creator
Author

Hi, 

that worked, thanks for your help. 

How can I exclude a text from a column? 

For example exclude 698758 from column Supplier C. 

Kind Regards, 
Daniel

 

MayilVahanan

HI @Daniel1908 

Try like this

=Count({<Prod={'TH'}, SupC -={698758} >} If(SupA=SupB, Mat))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Daniel1908
Creator
Creator
Author

Hi Mayil,

Thanks for your help. 

How can I exclude another SupC? 698758 and 698452?

Kind Regards, 
Daniel

MayilVahanan

HI Daniel,

You can add another value with comma separator.

=Count({<Prod={'TH'}, SupC -={698758, 698452} >} If(SupA=SupB, Mat))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Daniel1908
Creator
Creator
Author

Hi Mayil, 

Thanks for your help.

Kind Regards, 

Daniel