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: 
kris_vliegen
Partner - Creator III
Partner - Creator III

Backgroundcolor in Pivot Tble

Hi all,

I have a pivot table like this.

Can I change the backgroundcolor per station or per line?

So it's more clear to read this?

I was thinking in  the backgroundproperties like : =if( even(RowNo( ))= 'true', darkgray( ) )

But this doesn't work.

vraag.JPG.jpg

6 Replies
tresesco
MVP
MVP

For expression column, you can try like:

=if( even(RowNo( )), darkgray( ) )               // without 'true'

if it's a dimension column, rowno() would not work, alternatively you can check dimension member(or, some other logic) and put color accordingly.

vikasmahajan

Right Click - > Properties -> Expression -> Background color ->

Give condition

=if(column(3)>0.001 and column(2)>0.001,if(column(3)>column(2),rgb(0,182,0),rgb(247,247,247)),0)

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
ngulliver
Partner - Specialist III
Partner - Specialist III

Hi, Kris.

You have several options here.

If you want to simply highlight the rows better, go to Style tab, change current style to Light and have stripes every other line.

If you want to highlight good and bad values I often use the expression below in the background colour or the 'Visual Clues' tab

=IF(Field1  > 0,

  $(vColTrafficGreen),

  IF(Field1  < 0,

  $(vColTrafficRed),

  $(vColTrafficGreen)

  ))

with the variables being predefined rgb,

Regards,

Neil

kris_vliegen
Partner - Creator III
Partner - Creator III
Author

Hi Neil,

I would like to simply highlight the rows better but if I go to the style Light I can't change the number of stripes???

style.JPG.jpg

I also tried with borders above spacing. This is working in my client version, but not if I contact the documnet with chrome.

kris_vliegen
Partner - Creator III
Partner - Creator III
Author

Hi Vikas,

If I do this I get

expression.JPG.jpg

kris_vliegen
Partner - Creator III
Partner - Creator III
Author

This isn't working for my Pivot-table.

Regards,

Kris