We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Multiple criterias to be highlighted using table tool

hegdepavithra10
9 - Comet

 

Hi ,

 

I have the following data

 

hegdepavithra10_0-1606477170332.png

 

I want the table tool to color only when the value under column A is "Not valid","Not match", "Threshold breach". However by using the below formula under column rule, the entire column irrespective of the value is getting colored red.

 

if [A] = "Not valid" OR "Not match" OR "Threshold breach" then "color:red;" else null() endif

4 REPLIES 4
Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @hegdepavithra10,

 

You could use a row rule in the table tool for this:

 

I always prefer to use the IN() function to list strings as I find it makes it easier personally.

 

 

 

[A] IN('Not valid','Not match','Threshold breach')

 

 

 

Jonathan-Sherman_0-1606477483851.png

 

The output you get looks like:

Jonathan-Sherman_0-1606477606465.png

 

If this solves your issue please mark the answer as correct, if not let me know! I've attached my workflow for you to download if needed.

 

Regards,

Jonathan

 

 

 

atcodedog05
22 - Nova
22 - Nova

Hi @hegdepavithra10 

 

Here is the column rule

 

[A] in ("Not Valid","Not Match","Threshold breach")

 

atcodedog05_0-1606477915658.png

 

Output:

atcodedog05_1-1606477577757.png

 

Edit : same as @Jonathan-Sherman posted around seconds difference 😅

 

Hope this helps 🙂 Feel to ask if you have any questions


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

Jonathan-Sherman
15 - Aurora
15 - Aurora

I would also note @hegdepavithra10 that you could use a column rule or a row rule (both a similar approach to setting up, same formula etc) the difference is a row rule will apply the conditional formatting to the whole row (all columns) and a column rule only to the applied column.

 

Row Rule:

Jonathan-Sherman_0-1606477737144.png

 

 

Column Rule:

Jonathan-Sherman_1-1606477792567.png

 

 

Regards,

Jonathan

Jonathan-Sherman
15 - Aurora
15 - Aurora

Seems you've got the best of both worlds on this post as @atcodedog05 talks about a column rule and I showed the row rule approach! One of the wonders of the Alteryx Community!

Labels
Top Solution Authors