Free Trial

Alteryx Designer Desktop Discussions

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

Extract Text

BRRLL99
11 - Bolide

Hello Guys,

 

From the given Data-set I'm trying extract only Interim Dividend

 

Interim Dividend - Rs. - 25.0000
Scheme of Arrangement
Interim Dividend - Rs. - 6.2500
Final Dividend - Rs. - 10.0000
Consolidation of Shares
Consolidation of Shares
Reduction of Capital
Dividend - Rs. - 6.0000

 

EXPECTED OUTPUT

 

Purpose Dividend
Interim Dividend - Rs. - 25.0000Interim Dividend - Rs. - 25.0000
Scheme of Arrangement 
Interim Dividend - Rs. - 6.2500Interim Dividend - Rs. - 6.2500
Final Dividend - Rs. - 10.0000 
Consolidation of Shares 
Consolidation of Shares 
Reduction of Capital 
Dividend - Rs. - 6.0000 
3 REPLIES 3
Amol_Telore
11 - Bolide

@BRRLL99 You can use Regex tool to parse this data. Set regex tool inn Parse mode and in the regular expression put below syntax.

 

(^Interim Dividend.*)

 

It should work. 

Adrian_T
Alteryx Alumni (Retired)

Hi @BRRLL99,

 

This should work just fine for you. Use a formula tool to create a new column using the following formula:

IF Contains([Purpose],"Interim Dividend") THEN [Purpose] ELSE "" ENDIF

 

I have also attached a sample workflow for your reference. 🙂

 

Adrian_T_0-1657950488432.png

 

binuacs
21 - Polaris

@BRRLL99 You can also use the StartsWith string function

IIF(StartsWith([Purpose ], 'Interim'), [Purpose ], '')

binuacs_0-1657954044489.png

 

Labels
Top Solution Authors