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

Alteryx Designer Desktop Discussions

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

Sum of fields based on a category

murthybhs
8 - Asteroid

Hello everyone,

 

I have the below data,

murthybhs_0-1612482868554.png

And this is what I am aiming to achieve:

murthybhs_1-1612482902534.png

Basically, sum of revenue category and expense category separately for each month so that I can output visualizations.

 

Thank you!

6 REPLIES 6
JagdeeshN
12 - Quasar
12 - Quasar

Hi @murthybhs ,

 

A summarize tool should do the trick for you.

 

jagdeeshn_0-1612483315861.png

 

Please check the attached workflow.

 

Do let me know if this helped.

 

Best,

Jagdeesh

 

murthybhs
8 - Asteroid

Thank you for the response Jagdeesh. What if there is a new month column added every month? Is there a way to automate it without manually changing the summarize tool?

JagdeeshN
12 - Quasar
12 - Quasar

@murthybhs 

 

Please find attached a sample workflow. In this the output from the batch macro will give you the dynamic summarizing capability.

 

Best,

Jagdeesh Narayanan

Qiu
21 - Polaris
21 - Polaris

@murthybhs 

Version without macro.

0205-murthybhs.PNG

murthybhs
8 - Asteroid

Thank you for the solution @Qiu. That helps a lot. I'm slowly starting to learn based on inputs from people like you. Very much appreciate it. Is it possible to get line charts in Alteryx for the same data? I mean Months on X axis and $ amounts on Y axis with each line for Revenue and Expense? 

Qiu
21 - Polaris
21 - Polaris

@murthybhs 

Since you put some good words on me, here you go.😁

0205-murthybhs-.PNG

Labels