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

Need to Match Rows

O551255
5 - Atom


Hello, 

 

Need help to compare values across the week for each employee and determine if the numbers are a match across the week not including "0" (Days Off).  

 

I've used the formula below but can't seem to get the end result below 

 

 

 

Employee IDMonTueWedThuFriSatSatResults
188888  Match
2 88888 Match
3884488 No Match
444444  Match
510101055  No Match

 

 

IF ([MONDAY] != "0" OR [TUESDAY] != "0" OR [WEDNESDAY] != "0" OR [THURSDAY] != "0" OR [FRIDAY] != "0" OR [SATURDAY] != "0" OR [SUNDAY] != "0") THEN
     IF ([Monday] = [Tuesday] OR [Monday] = [Wednesday] OR [Monday] = [Thursday] OR [Monday] = [Friday] OR [Monday] = [Saturday] OR [Monday] = [Sunday] OR [Tuesday] = [Wednesday] OR [Tuesday] = [Thursday] OR                [Tuesday] = [Friday] OR [Tuesday] = [Saturday] OR [Tuesday] = [Sunday] OR
          [Wednesday] = [Thursday] OR [Wednesday] = [Friday] OR [Wednesday] = [Saturday] OR [Wednesday] = [Sunday] OR
          [Thursday] = [Friday] OR [Thursday] = [Saturday] OR [Thursday] = [Sunday] OR
          [Friday] = [Saturday] OR [Friday] = [Sunday] OR
          [Saturday] = [Sunday]) THEN
             "Match found"
    ELSE
            "No match"
    ENDIF
ELSE
    "Empty values found"
ENDIF

2 REPLIES 2
cjaneczko
13 - Pulsar

Try this, You dont need the long formula for the test. Transpose the dataset and use a Summarize tool.

 

image.pngimage.pngimage.png

O551255
5 - Atom

I was cracking my head with the formula. Your version is way simpler 

 

Thank you sooo much

Labels