Alteryx Designer Desktop Discussions

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

Summarizing data dynamically

Alteryxexpert
8 - Asteroid

I have Data like below,

ItemFilter Date31-Dec-2331-Jan-2429-Feb-24
A31-Jan-244,545,4564,545,4564,545,456
A31-Jan-24545,654545,654545,654
B31-Jan-24###########################
B31-Jan-24752,436752,436752,436
C31-Jan-24689,535689,535689,535
C31-Jan-2484,274,82747,382,78348,912,384

 

and I need the output as below, I need to Filter out the columns based on the Filter Date, If the filter date is 31-Jan-2024 then the columns should start from 31-Jan-2024 to 31-Dec-2024, and the filtering is dynamic. Is there a way to achieve this?

 

ItemFilter DateSum of 31-Jan-2024Sum of 29-Feb-2024
A31-Jan-245,091,1105,091,110
B31-Jan-24466,217,901466,217,901
C31-Jan-2448,072,31848,072,318

 

 

7 REPLIES 7
aatalai
13 - Pulsar

@Alteryxexpert  see if this helps, had to drop the row with #### as I couldn't see the number

Alteryxexpert
8 - Asteroid

The Output Column name should be "Sum of 31-Jan-2024" , "29-Feb-2024" etc.

aatalai
13 - Pulsar

@Alteryxexpert take a look at this one

csh8428
11 - Bolide

@Alteryxexpert try this one.

 

If this works for you please select it as as the accepted answer.

Gaurav_Dhama_
8 - Asteroid

Best approach to make summarization dynamic is by updating the xml of the Summarize tool. You can put the summarize tool inside a batch macro, where the control parameter will have single input and update the xml of the summarize tool. XML can be generated outside the macro and passed as input.

 

Since XML going inside the macro will be a string you can create it by transposing the headers and getting the relevant headers. 

cjaneczko
13 - Pulsar

Try this. This is completely dynamic and will filter out the columns based on the filter date.

 

image.png

 

image.png

SPetrie
12 - Quasar

Assuming that the Filter Date is the same for all Items, this is another possible solution you can use.

sum.PNG

Labels