Alteryx Designer Desktop Discussions

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

Table Tool - Background Color per Existing/New Email Address

Mert
Alteryx
Alteryx

Hi. I have a piece of data which updates weekly. One of the fields holds email data which does not have to be unique.

 

I am reporting the result using Table Tool. Let's say I start with 3 rows on the 1st week:

 

IDEmailWeek
1a@b.com1
2c@d.com1
3a@b.com1

 

I would like Table Tool (or another tool) to assign background colour per row per email address: Yellow, Red, Yellow

 

On the 2nd week, my data get enriched:

 

IDEmailWeek
1a@b.com1
2c@d.com1
3a@b.com1
4c@d.com2
5e@f.com2

 

I would like Table Tool (or another tool) to keep assigning background colour per row per email address: Yellow, Red, Yellow, Red, Blue

 

There is no pre determined colour for any email address. We don't know how many different email address we will end up with as weeks go by. However we are sure that total number of different email addresses will not be more than 30 or 35. 

 

Is this any possible? TIA!

4 REPLIES 4
Clifford_Coon
11 - Bolide

Hi @Mert ,

 

A thought and a Question.

 

You could extract a unique list of names after each enrichment process and assign the same color to those that already had a color, then assign a new color to each new email. (You would need to have a "bank" of colors to be assigned)

 

Q: do the colors need to remain the same once they have been used - the above assumes that is the case

Mert
Alteryx
Alteryx

Thank you @Clifford_Coon for sharing your thoughts. It is worth it to give it a try.

 

A: I think the colors need to remain the same once they are assigned to certain email addresses on week 1 onwards.

Clifford_Coon
11 - Bolide

Hi @Mert ,

 

Here is a working prototype.  The Container could/should be a macro.

 

Colors.jpg

danilang
19 - Altair
19 - Altair

Hi @Mert 

 

Here's a way you can do it

danilang_0-1687285430168.png

 

 

 

Start with a blank colour mapping file populated with 35 colours.  I'm using named colours here, but you can use RGB values if you modify the column rule in the Table tool

danilang_3-1687284600395.png

This gets joined to the unique email addresses in the input data.  The unmatched ones get joined by record position to the remaining colours to assign a new colour to each new email.  The existing and new ones are joined to the input data to add a colour field for each record.  These are also unioned with the unmatched colours and written back out to the colour mapping file to use next week.

 

The table tool is configured to use the Colour field in a formula to set the text colour for each row 

danilang_5-1687285169566.png

 

Here are the results of sequentially adding new rows each week.  

 

Week 1

danilang_0-1687282974162.png

Week 2

danilang_1-1687283069290.png

Week 3

danilang_2-1687284123764.png

 

Good luck coming up with 35 easily distinguishable colours

 

Dan 

 

Labels