Alteryx Designer Desktop Discussions

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

Can you perform SUM over partitions with the Summarize tool?

dbaluv
5 - Atom

I am converting a SQL script into an Alteryx Workflow. Newish to the tool.

 

How do you convert this 

 

sum(FY_19_sales_amount) over (partition by branch_name) branch_FY_19_sales_amount

 

Into an Alteryx flow?

 

Thanks.

3 REPLIES 3
AbhilashR
15 - Aurora
15 - Aurora

You could use a Summarize tool and have the following setup:

 
 

Capture.PNG

dbaluv
5 - Atom

Thanks. That’s what I ended up doing. What if you have more than one calculation, should stack them up or use one summarize tool per calculation?

AbhilashR
15 - Aurora
15 - Aurora

It depends on how you are looking to compute your values. If you use one Summarize tool which sum's up the numerical value across multiple dimensions (i.e. all dimensions set to GROUP BY), then Alteryx will show you the sum at the lowest granularity across the two dimensions.

 

If you are looking to compute the sum across each dimension separately, then using two Summarize tools would be the way to go.

 

Labels