Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

Apply Multiple Style Rules in a Table on a Single Field

$
0
0

Hi all,

 

In a table, is it possible to put more than one style rule on a particular field?

 

In the below example, I have a particular value, with three pipes (|||) in front of it. Any value with this prefix is to be output in the table as a red colour (as below).

 

Table#2.PNG

 

I did this using a formula:

 

LEFT ([Comments],3) = ‘|||’  and then selecting the colour red. 

 

Rule#1.PNG

 

However, I need to then remove the pipes from the beginning of the string so that only the string and the red colour remain (without the three pipes at the beginning).

 

I’ve tried adding a second rule for the column, using TrimLeft, If statements, etc, and have tried writing something similar into the first rule, however nothing seems to work at all. 

 

So, is it possible to perform more than one rule on the same column within the table tool, so that once Alteryx changes the colour of '|||' prefixed strings to red, it then removes that prefix of '|||'?

 

Any help at all, would be greatly appreciated.

Many thanks

 

Ben


Viewing all articles
Browse latest Browse all 4999

Trending Articles