Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Text in red colour, based on first letter in string

Hi, I am looking for a way to change the colour of the tex string in column CODE_VLGN_ACTION in red if the value starts with a C of J. Is there a way to do so? Thanks! John  
  • Fowmy's avatar
    5 years ago

    Anonymous 

    You can add the below measure and apply CF on the Font with Rule as follows. You can also add other letters if required

     

    CF = INT(LEFT( MAX(Table[CODE_VLGN_ACTION]) , 1 ) IN {"C","G"})

     

  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi Fowmy 

    Decided to use the solution of MariaP , but many thanks for your reply.

    John