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: 
Sri4
Contributor II
Contributor II

Change the duplicate values color in a field

I have 5 rows of data and all are same value . I have scenario first row value should be black color and rest of 4 values are in same color

Labels (1)
3 Replies
udit_k
Partner - Creator II
Partner - Creator II

use below expression in background color script of expression :-

=if(rowno()<=1,Red(),Green())

 

udit_k_0-1688375314321.png

 

Sri4
Contributor II
Contributor II
Author

My Scenario is 

load * inline [

name

abc,

abc,

abc,

xyz,

xyz   ];

I wanna to display one duplicate values to be red color and first row data is black color

udit_k
Partner - Creator II
Partner - Creator II

ok, use aggr function to customize  requirement:-

for example:-

if(sum(aggr(count(USER),Region))>1,Red(),if(rowno(TOTAL)=1,Black()))

 

udit_k_0-1688382292525.png