Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Expected False to change to True if all records are False

cvh
5 - Atom

I am using the multifield formula to try to change all values in the cells Mon/Tue/Wed/Thu/Fri to True if 'Frequency' is 'Adhoc' and all values in Mon/Tue/Wed/Thu/Fri are False.

 

However, when I run the formula, the values in the Mon-Fri cells remain False, when they are all False.

 

The data looks like this before/after running the formula, but after running the formula, they should all be True.

 

FREQUENCYMONTUEWEDTHUFRI
AdhocFalseFalseFalseFalseFalse


Here is my formula:

 

if [FREQUENCY] = "Adhoc" and
[MON] = 0 and
[TUE] = 0 and
[WED] = 0 and
[THU] = 0 and
[FRI] = 0
then [_CurrentField_] = -1
else [_CurrentField_] = [_CurrentField_]
endif

 

I selected BOOL fields MON, TUE, WED, THU and FRI as __CurrentField__

 

Can anyone help answer why the values don't change?

 

 

 

1 REPLY 1
MarqueeCrew
20 - Arcturus
20 - Arcturus
Try this please:

if [FREQUENCY] = "Adhoc" and
[MON] = 0 and
[TUE] = 0 and
[WED] = 0 and
[THU] = 0 and
[FRI] = 0
then -1
else [_CurrentField_]
endif
Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Labels