Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
spikenaylor1
Creator
Creator

Text on Axis Coluring for certain conditions

I have expression showing as text on axis

I need to colour this text based from a list of Batch numbers to indicate new data for chart

I NoConcatenate Load a list of Batches that need to be highlighted as new batches for the monthly report

on the Text Colour part of the expression

my formula is

= If(substringCount(GetFieldSelections(Batches_to_Include),Batch)>0,Brown(),LightGray())

Selecting any Batch from the Batches-to-Include list colours the text brown

selecting any combination colours text brown

selecting all of the list fails, no brown colouring

cant work out why this is

any advice greatly received

Many thanks for looking

 

 

Labels (1)
1 Solution

Accepted Solutions
tresesco
MVP
MVP

What if you try like:

= If(substringCount(GetFieldSelections(Batches_to_Include, '|', 100),Batch)>0,Brown(),LightGray())

 

View solution in original post

4 Replies
tresesco
MVP
MVP

Could you share a sample app and explain the expected output in that context?

spikenaylor1
Creator
Creator
Author

 

 

quicker to use photos

Please see photos below for what happens

 

No Selections madeNo Selections made

No Selections Made

 

Some Selections madeSome Selections made

Some Selections made

 

All but one selectedAll but one selected

All but one selected

 

All selectedAll selected

All Selected

 

 

tresesco
MVP
MVP

What if you try like:

= If(substringCount(GetFieldSelections(Batches_to_Include, '|', 100),Batch)>0,Brown(),LightGray())

 

spikenaylor1
Creator
Creator
Author

Many Thanks

that sorted it

Regards