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

Alteryx Designer Desktop Discussions

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

Check if numeric column is all integers or all decimals

dpakapd
8 - Asteroid

Hi,

I have a sales amount column in my data where the numbers are all supposed to be integers or all supposed to be decimals. However they are not supposed to be mixed, i.e. it cannot be 145, 234, 14.57, 32. 

How can I add a column (using formula tool or similar) to say "NUM ERROR" when the sales amount column is mixed?

 

I wrote 2 multi-row formulas for catching integers and decimals. But ultimately I want only one column that shows "error" if an only if the sales amount column has mixed data (integers and decimals).

 

dpakapd_0-1645208537124.pngdpakapd_1-1645208554100.png

 

 

Can you pl advise how I can achieve this?

 

Thanks

3 REPLIES 3
atcodedog05
22 - Nova
22 - Nova

Hi @dpakapd 

 

Here is how you can do it.

Workflow:

atcodedog05_0-1645209110933.png

 

Hope this helps : )

 

dpakapd
8 - Asteroid

@atcodedog05 : This really helped! Thank you so much!

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @dpakapd 

Cheers and have a nice day!

Labels
Top Solution Authors