Start Free Trial

Alteryx Designer Desktop Discussions

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

Filter specific records with conditional statement.

anonymous008_G
8 - Asteroid

Hi,

 

I need help with my attached workflow. I have already flagged Corp HY and Corp IG records using the formula tool. However, I also need to flag EMG and DEV records, which come immediately following Corp HY and Corp IG. Can someone please help further using the attached workflow? How would I flag EMG and DEV records using the multi-row formula tool?
Expected output should like this.

SectorFund OASDFund MV%BM OASDBM MV%Main Flag
Quasi-Sovereigns2.1136.011.6231.440
EMG2.1136.011.6231.440
Corp HY0.051.31001
EMG0.051.31001
DEV0.092.36001
Sovereign Dev1.9732.011.5228.50
EMG1.9732.011.5228.50
Sovereign EM0.092.690.092.940
EMG0.092.690.092.940
Corp IG2.3651.362.3640.211
EMG2.3651.362.3640.211
DEV13.320.261.251
4 REPLIES 4
davidskaife
14 - Magnetar

Hi @anonymous008_G 

 

Here you go, simply update the Flag_Main field using this formula:

 

IF [Row-1:Flag_Main] = '1' AND [Sector] IN ('EMG','DEV')
THEN 1
ELSE [Flag_Main]
ENDIF

 

Screenshot 2025-04-29 105212.png

 

Qiu
21 - Polaris
21 - Polaris

@anonymous008_G 
How about we use one Multi-row formula tool instead the normal formula tool?

0429-anonymous008_G.jpg

anonymous008_G
8 - Asteroid

@Qiu @davidskaife  thank you both. both the solutions are good and solve my purpose. 

stataltgee
8 - Asteroid

@anonymous008_G  Just add a multirow tool before formula tool and then modify the formula tool.

Labels
Top Solution Authors