Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Finding the "mode" value for text across columns

Hi all, 

 

I have a a list of columns by month and rows by account ID, and text values under each - like below. I am looking to find the most common value for each Account ID for just these six columns e.g., Row 2 would be "Bronze", and place these new most common values in a new column.  

 

Furthermore, I am looking to exclude all the 'N/A' text values for this analysis. Can anyone help guide me on this? 

 

So far I have used the Transpose tool to convert all to rows, then selected Account ID by Key Columns, then created a formula to group all the months into a '2021' category, then summarized to find mode, to then join back into the main dataset. But for some reason this is not working, and I can't seem to figure out how to exclude the N/As. 

 

Any help would be appreciated - thanks! 

 

Account IDJanuary 21February 21March 21April 21June 21July 21
1PlatinumGoldSilverBronzeBronzeBronze
2GoldGoldPremiumPremiumN/APremium
3N/AN/AN/AN/APremiumPremium
3 REPLIES 3
Qiu
21 - Polaris
21 - Polaris

@NewAlteryxUser0221 
I think you are almost there.

0122-NewAlteryxUser0221.PNG

Thanks so much! This worked well 🙂 

murad
5 - Atom

thanks for the solution.

alternatively we can use the Mode function in the Summarize tools

mode_calc.png

 

Labels