Alteryx Designer Desktop Discussions

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

Dynamic Filter Help

sethuram85
6 - Meteoroid

Hi,

 

I'm looking for a dynamically filtered output to filter below table with the following requirement.

 

All the Approved & Declined statuses should be part of Output for the source 'News', but, only Approved status row for the 'Music' (Do not want to see Declined status of Music), I've been trying with Filter & Formula tools but not able to get the desired output.

 

Input table

SourceStatus
NewsDeclined
MusicApproved
NewsDeclined
NewsApproved
MusicDeclined

 

Desired output

SourceStatus
NewsDeclined
MusicApproved
NewsDeclined
NewsApproved

 

3 REPLIES 3
Luke_C
17 - Castor

Hi @sethuram85 

 

Try this: 

([Status] in ('Approved','Declined') and [Source] != 'Music')
or ([Status] != 'Declined' and [Source] ='Music')

 image.png

ChrisTX
15 - Aurora

Use a Filter tool, choose the button for Custom Filter with this formula:

 

IF [Source] = "News" THEN 1

ELSEIF [Source] = "Music" and [Status] = "Approved" THEN 1

ELSE 0

ENDIF

 

Note: 1 represents True, and will send a record out the T anchor.  0 represents False, and will send a record out the F anchor

 

Chris

sethuram85
6 - Meteoroid

Thank you so much! This has perfectly worked for me.

Labels