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: 
manuelrubiano
Partner - Contributor II
Partner - Contributor II

Highlighting repeated values in straight table

Hi community, I would appreciate some help.

I have a model with two tables:

manuelrubiano_0-1624309763968.pngmanuelrubiano_1-1624309797230.pngmanuelrubiano_2-1624309816476.png

I need show the data in a adhoc table. when I add the fields from Tab1 only, the key value is unique in each row:

manuelrubiano_3-1624309978305.png

 

But when i add the field col4 from Tab2, some key values are duplicated. I need mark the key values duplicated (with a background color) only when the col4 is added:

manuelrubiano_4-1624310197647.png

Is this possible?

 

Thanks.

 

 

Labels (2)
1 Solution

Accepted Solutions
jbhappysocks
Creator II
Creator II

Hi

if(IsNull(col4),null(),

if(count(total <Key> {<col4=>} col4)>1,red(),null()))

jbhappysocks_2-1624349953996.png

 

jbhappysocks_1-1624349938598.png

 

 

View solution in original post

2 Replies
jbhappysocks
Creator II
Creator II

Hi

if(IsNull(col4),null(),

if(count(total <Key> {<col4=>} col4)>1,red(),null()))

jbhappysocks_2-1624349953996.png

 

jbhappysocks_1-1624349938598.png

 

 

manuelrubiano
Partner - Contributor II
Partner - Contributor II
Author

It works. Thanks.