We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Segregate data my month

kauser
8 - Asteroid

Hello, 

i have a input file that will update couple of times in every week/month and based on that i have to create pivot table. for example- end of each week input file will update with new data that means this file will have four table of data and will have four pivot table. challenge is  how can i make a workflow that will create separate new pivot table every time with new data from same input file. 

 

Input file - (2 weeks of data)

January 7th  
ITEM1ITEM2
A45345
B68017.5
C102026.3
D153039.4
A789879
B1184819
C1777228
D2665842
  
  
January 15th  
  
ITEM1ITEM3
A768
B1536
C3072
D6144
A789879
B1184819
C1777228
D2665842

 

expected output- (2 pivot table. first from Jan7th and second from Jan15th) 

 

  
Row LabelsSum of ITEM2
A835224
B1252836
C1879254
D2818881
Grand Total6786195
  
  
  
  
  
  
  
Row LabelsSum of ITEM3
A768
B1536
C3072
D6144
Grand Total

11520

7 REPLIES 7
binuacs
21 - Polaris

@kauser question the Jan 7th and 15th data from one file or separate files?

kauser
8 - Asteroid

Same input file 

binuacs
21 - Polaris

Question : Are the January 7th and 15th headers also in the input file? I am looking for some identifier to segregate the data

kauser
8 - Asteroid

yes header will be there too for both Jan7th and Jan 15th 

Yoshiro_Fujimori
15 - Aurora
15 - Aurora

Hi @kauser 

From the viewpoint of data normalization, it might be easier to re-format the data like below.

I know in the real world it is sometime difficult to change the input data, but if you can change the input data to follow the first normal form,

Alteryx Tools (say Summarize, Cross Tab etc.) can deal with the data much easier than the original data format.

So I would recommend looking into this. Good luck.

Image.png

Qiu
21 - Polaris
21 - Polaris

@kauser 
You are really asking Alteryx to do that it is not good at. 😁

If we have to, may we can try with a batch macro as below.

0206-kauser-A.png0206-kauser-B.png

lwolfie
11 - Bolide

Did these solutions work?  An additional step to get it closer to your output would be to use the reporting tools after the solutions above.

Labels
Top Solution Authors