ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

IF AND OR Formula

Klachner
Meteoro

I need help with the following formula

 

 

if [countdistinct_entity] = 1 AND IF Contains([receiving_entity],"X") OR contains([receiving_entity],"Y") THEN "X" ELSE "Keep" ENDIF

9 RESPOSTAS 9
cjaneczko
Pulsar

 

 

if [countdistinct_entity] = 1 AND REGEX_Match([receiving_entity],".*(X|Y).*") THEN "X" ELSE "Keep" ENDIF

 

 

binu_acs
Polaris

@Klachner 

IF [countdistinct_entity] = 1 
AND  
(Contains([receiving_entity],"X") OR contains([receiving_entity],"Y"))
 THEN "X" 
ELSE "Keep"
ENDIF
Klachner
Meteoro

The formula doesn't seem to be working consistently. It is pulling some [Countdistinct_receiving_entity] = 3 with the receiving entity being either x or y and giving it a "X"

cjaneczko
Pulsar

It shouldnt be.

 

image.pngimage.png

Klachner
Meteoro

Is that a "/" or a straight up and down line?

Klachner
Meteoro
 

Here is a screenshot

cjaneczko
Pulsar

Straight up and down. Not sure what it italicizes it in the formula box. Its the key above the Enter key on the keyboard. 

Klachner
Meteoro

That was my issue thank you. Going forward where do I find the straight up and down line on my keyboard?

cjaneczko
Pulsar

I had edited my comment after submitting it, but its the key above your Enter Key. Hold Shift on the \ key. 

Rótulos
Autores com maior número de soluções