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: 
rsimson1
Contributor II
Contributor II

Adding Visual Clue to Straight Table

Hi,

I'm having trouble adding a visual clue to a straight table. I have gone into the expression that I want to change then background and then in the definition expression I have the below expression. It shows a variable being colored red against the sum of a dimension. Any idea why no visual clue is appearing?

=if

($(eAllStudents)<= sum([Target Class Students]),Color(3), // Red

1 Solution

Accepted Solutions
Or
MVP
MVP

First of all, the formula shown is not complete and will fail to parse.

Second, it is impossible to tell what the formula is supposed to color without knowing the contents of your variable.

Third (and hopefully this part answers your question despite the missing information), assuming you are using the Visual Cues tab, these are calculated once for the entire table, not for each individual row. If you're looking for row-level highlights, you need to use the dimension / expression properties (background color or text color, as appropriate) - click the expand sign next to the appropriate dimension/expression to open these properties.

View solution in original post

3 Replies
sunny_talwar

Difficult to say without taking a look, would you be able to share a sample?

rsimson1
Contributor II
Contributor II
Author

Hi, this is the expression if this helps?

=if(

  //Enrolments Live

  Num($(eEnrolmentsLive)

  <

  //Target Class Students

  Num($(eTargetClassStudents), Color(3), // Red

  if (

  //Enrolments Live

  Num($(eEnrolmentsLive)

  <

  //Target Class Students

  Num($(eTargetClassStudents), Color(1), // Green

  //Else No Color Change

))

Or
MVP
MVP

First of all, the formula shown is not complete and will fail to parse.

Second, it is impossible to tell what the formula is supposed to color without knowing the contents of your variable.

Third (and hopefully this part answers your question despite the missing information), assuming you are using the Visual Cues tab, these are calculated once for the entire table, not for each individual row. If you're looking for row-level highlights, you need to use the dimension / expression properties (background color or text color, as appropriate) - click the expand sign next to the appropriate dimension/expression to open these properties.