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.
解決済み

Transform

phoebe_90
アステロイド

How to transfer A into B

A

Expense Type
Transportation 3% – Online ride-hailing (China Only)
Transportation 9% – Train (China Only)

B

Expense rate
3%
9%
5件の返信5
ArnaldoSandoval
クエーサー

Hi @phoebe_90 

 

You can use the following regular expression:

 

.*\s(\d*%)\s.*

 

RegExp-01.png

Regular Expression Tool:

RegExp-02.png

 

Note, the regex parses #% and ##% and ###% it does not handled decimal points.

 

Hope this helps,

Arnaldo

BRRLL99
ボリード

Use Regex Tool and try this formula \d+%

flying008
オーロラ

Hi, @phoebe_90 

 

1- By RegEx tool of Parse method:

 

([0-9.]+?%)

 

2- Use formula :

 

Substring([Expense Type],FindString([Expense Type], ' ') + 1,FindString([Expense Type], '%') - FindString([Expense Type], ' '))

 

录制_2023_07_31_12_27_39_302.gif

binu_acs
ポラリス

@phoebe_90 The regex tokenize would do the trick

image.png

grazitti_sapna
キャスター

Hi phoebe_90

You can use a RegEx tool and use the expression \d+% with output method as Tokenize

Thanks!

Sapna Gupta
ラベル
トップのソリューション投稿者