Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Formatting Data based on a masking value

kayogunbo
7 - Meteor

Dear Expert,

 

I need to format my SAP WBS data to have the required dots. based on a masking value. i have included the most common type of WBS that i am working with and the associated way to mask them.

 

In the attached spreadsheet, the data from SAP is in Column E, the masking type is in column G and the expected output is in column H.

 

Any help is appreciated.

 

Many thanks!

 

Kay O.

3 REPLIES 3
Adrian_T
Alteryx Alumni (Retired)

Hey @kayogunbo 

 

Here's one way of doing it. We can first determine your masking logic of POSID through calculating the length between each dot.

 

What's left is using the Substring Formula to filter out the corresponding values in the WBSE column before concatenating them together using "." as a delimiter.

 

Adrian_T_0-1655808227204.png

 

DavidSkaife
13 - Pulsar

Hi @kayogunbo 

 

Here is a way of doing it using Regex by defining the pattern(s) in seperate streams, then joining together and finally unioning back:

 

DavidSkaife_0-1655808418363.png

 

kayogunbo
7 - Meteor

Thanks @DavidSkaife and @Adrian_T for the wonderful solutions. Very much appreciated

Labels
Top Solution Authors