Alteryx Designer Desktop Discussions

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

Deselect a specific record

muns
7 - Meteor

Hi - My second beginner question today. I have imported data from the left hand table below but would like to end up with the second table i.e. deselect the row for H1 2019 and rename H2 2019 as 2019, then rename Est 2020 as 2020. Whats the quickest way to do this please?

 

Many thanks!

 

YearValue YearValue
2017100 2017100
2018110 2018110
H1 2019112 2019115
H2 2019115 2020120
Est 2020120   
5 REPLIES 5
PhilipMannering
16 - Nebula
16 - Nebula

So you want to deselect anything with "H1" in it and also just take the year digits?

muns
7 - Meteor

Yes please.

PhilipMannering
16 - Nebula
16 - Nebula

How about something like this?

PhilipMannering_0-1574424387065.png

 

 

muns
7 - Meteor

Yes that works - thanks very much. 

 

So that I understand though - in the Regex tool under Regular Expression you have typed:

 

(\d+)$

 

What does each part of this expression mean?

PhilipMannering
16 - Nebula
16 - Nebula

The brackets keep everything you want to capture.

The \d is a digit

The + is "one or more"

and the $ means anchor to the end.

 

...so (\d+)$ means capture 1 or more digits at the end of string.

 

You could also use (\d{4}) which would capture first four digits in a row in the string.

Labels