Free Trial

Alteryx Designer Desktop Discussions

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

Cross Tab data dynamically

Rico_Widmayer
7 - Meteor

Hi all :) 

 

I have a problem with some messy data. 

I receive data from another system (strucuture is fixed unfortunately) which contains 3 columns containing different values.

 

Its basically many data tables added together one below the other. Which means one set of data looks like this (this is an extract) 

First fieldMonthValue
Name1  
2015January11,5096479
 February23,8781814
 March25,1236438
 April67,0685224
 May20,1968975
 June60,984966
 July65,1069862
 August73,8685958
 September58,219544
 October86,7899767
 November83,8234705
 December16,772623
2016January67,8943966
 February13,5733143
 March72,7014173
 April26,3477572
 May65,4552399
 June12,7835286
 July5,99862806
 August73,823003
 September45,054345
 October50,7705732
 November24,273235
 December16,0405277

 

The Name is the unique identifier of the data set. The set goes on until 2022 December.

What I try to achieve: Cross tab the data to have a list of names in the first column and all the months dates horizontally. In that case:

 

IDJan 15Feb 15Mrz 15Apr 15Mai 15Jun 15Jul 15Aug 15Sep 15Okt 15Nov 15Dez 15Jan 16Feb 16
Name1ValuesValuesValuesValuesValuesValuesValuesValuesValuesValuesValuesValuesValuesValues

 

This is easily manageable for me. The problem I face is that there are almost 1.000 of these data sets below each other. Which means I have to manually seperate those 1.000 sets first before cross tab them...

 

Does anyone have an idea how to achieve that? I attache a sample of the data conatining the Input and desired output tabel as example.

 

Thank you! :) very curious to see if anybody has an idea

 

 

 

 

 

4 REPLIES 4
Felipe_Ribeir0
16 - Nebula

Hi @Rico_Widmayer 

 

One way of doing this

 

Felipe_Ribeir0_0-1668533798210.png

 

Rico_Widmayer
7 - Meteor

Thank you very much! Works quite well.

 

I am now struggling a bit with the REGEX_Match expression in the Multi-Field Formula. 

In my sample data the ID has the pattern 'Name'+Number, but the real data has the pattern 'WZ'+Numbers+spaces+words e.g. 

'WZ08-A-09 Special Topics'

 

Any idea how to adjust the expression to make it work for that pattern? 

I tried this one but did not have success:

 

IF REGEX_Match([First field], 'WZ\w*') THEN [First field] ELSE [Row-1:ID] ENDIF

Felipe_Ribeir0
16 - Nebula

Hi @Rico_Widmayer 

 

You can use this one, it will get WZ + Numbers + Anything

Felipe_Ribeir0_0-1668603058373.png

 

 

Labels
Top Solution Authors