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: 
richters
Partner - Contributor III
Partner - Contributor III

Background Color Pivot chart (if one dimension on top)

Hi all,

I created a pivot chart and want to highlight every second row. So I gave every formula and dimension a background formula as followed:

=if(mod(rowno(),2)=0,LightGray(80))

Is it possible to give the cells in red a background color?

Thanks a lot!

25 Replies
Qrishna
Master
Master

The dimension C was pivoted earlier.

See now.

Capture1.PNG

Qrishna
Master
Master

make sure your values in cells are not nulls.

If you have any nulls, you cannot see the color in that cell(i anticipate.)

richters
Partner - Contributor III
Partner - Contributor III
Author

Look at my example, I got a dimension on top and want to color the complete row. My problem are the cells of the dimension which is on the top.

Qrishna
Master
Master

thats what i said.

When you pivot the dimension, you cannot use rowno().

just specify the background color or text color with no condition on rowno().

Capture1.PNG

See attached

richters
Partner - Contributor III
Partner - Contributor III
Author

and how do I set the background color of the desired fields (every second row) then?

Qrishna
Master
Master

If i am not wrong, they are already been colored with lightgray.

just replace the lightgrya() with red() everywhere then you can see red.

richters
Partner - Contributor III
Partner - Contributor III
Author

I want to highlight the following fields in the table (see attached).

I can not see in any example how to color them.

Qrishna
Master
Master

IS this what you wanted?

Capture1.PNG

see attached.

Qrishna
Master
Master

those are not field values.

as you have pivoted the dimension, its just an empty column.

richters
Partner - Contributor III
Partner - Contributor III
Author

No, I totally know how to change the color. But in the first red row (Station=B) - the second column (under the dimension title of the second dimension) the field is not red. I want it to be red.