Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Sri4
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

use below expression in background color script of expression :-

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

 

udit_k_0-1688375314321.png

 

Sri4
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

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