Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
sergio0592
Specialist III
Specialist III

Coloring RowNo() issue

Hi all,

I'am facing an issue about coloration lines. I have date set with Personne field. For each value of this field i'd like alternate colors -> For rows corresponding personne 1 red line, for personne 2 green line, for personne 3 red line etc,...

For this i used a dimension 

=aggr(RowNo(),Personne)

Its ok, i have a rowno() value for each Personne.

But when i use this in background color formula, it doesn't works

=if(even(aggr(RowNo(),Personne)),LightGreen(), LightRed())

P6.jpg

So personne 2 should be green but there is only green for first row of Personne 2. See the attached .qvw file.

Thanks for your help.

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Use NoDistinct with aggr(), like:

if(even(aggr(NODISTINCT RowNo(),Personne)),LightGreen(), LightRed())

View solution in original post

2 Replies
tresesco
MVP
MVP

Use NoDistinct with aggr(), like:

if(even(aggr(NODISTINCT RowNo(),Personne)),LightGreen(), LightRed())
sergio0592
Specialist III
Specialist III
Author

Thanks!