Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Background color expression conditional on Dimension

Hi,

How can I change the background color of certain cells conditional on the dimension of the table? Here is what I want to achieve. So basically change the the color of every other row. I'm thinking this could be done by conditional on Bob and Joe, but if there are easier ways to do this I would really appreciate the help.

Thanks.

   

PersonSalesInboundOutbound
Bob169,94 €497,16 €751,65 €
Sam815,37 €414,82 €256,28 €
Joe628,56 €791,40 €849,71 €
8 Replies
qlikmsg4u
Specialist
Specialist

if you want to change colour of alternate rows just go to properties > style > Change Stripes every 1 row

sushil353
Master II
Master II

Hi,

Try below:

Under expression > background color

=if(Mod(RowNo(),2)=0,blue(),white())

HTH

Sushil

Not applicable
Author

Hi,

I should have mentioned that I am using Qliksense. Is there still a way to do this?

qlikmsg4u
Specialist
Specialist

Hi,

In Qliksense there is only Expression/Measure colour formatting.

Not applicable
Author

Hi Sushil,

Is there a way to just change the color for the grand total? Currently I am using if(RowNo()=0,xxx,yyy) to change the colors for subtotals but it is not picking up the grand total. Appreciate your help.

sushil353
Master II
Master II

Hi,

Try below steps:

1. Settings>User preferences > Design > check the option "Always Show design Menu Items"

2. Now goto your table and just take ur mouse courser on grand total cell and do right click.. Select the option > custom format cell and then change the background color.

HTH

Sushil

Not applicable
Author

Is there a way (script) to do this in Qliksense?

humesh_sindpure
Partner - Contributor III
Partner - Contributor III

can you show me the code for this