Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Colour code the row based on dimension

Hi All,

Is it possible to colour code entire row based on a dimension?

For example:

   

PolTermQnumsPnums
CurQ1244P1256
FutQ1244P5645
CurQ2345P556
FutQ2345P5647

Desired result

   

PolTermQnumsPnums
CurQ1244P1256
FutQ1244P5645
CurQ2345P556
FutQ2345P5647

Any help would be helpful.

Thanks,

Anupama Jagan

1 Solution

Accepted Solutions
sunny_talwar

Yes... something like this

If(PolTerm = 'Cur', RGB(...),

If(PolTerm = 'Fut', RGB(...)))

Use this as background color expression for all your expressions and dimensions

View solution in original post

7 Replies
sunny_talwar

Yes you can, but you will need to right the same expression for each of your dimension and expression's background color expression

Anil_Babu_Samineni

May be this expression for all BG color expression

=if(Even(RowNo(TOTAL)), rgb(198,224,180), rgb(180,198,231))


Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

I need this one based on polterm. for cur it should be in one colour and Fut in another colour. so I need to write the same expression on all dimensions and expressions?

sunny_talwar

Yes... something like this

If(PolTerm = 'Cur', RGB(...),

If(PolTerm = 'Fut', RGB(...)))

Use this as background color expression for all your expressions and dimensions

Anonymous
Not applicable
Author

But it wont be like this for all records.I just gave as example. it might be like this too

   

PolTermQnumsPnums
CurQ1244P1256
FutQ1244P5645
CurQ2345P556
FutQ2345P5647
FutQ3435P987

Basically the colour coding must be on polterm.

Anil_Babu_Samineni

As Sunny, Mentioned you must use this for all Dim's and Expressions

=If(PolTerm='Cur', rgb(198,224,180), rgb(180,198,231))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

Thanks a lot