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

Formulas

bsolove
8 - Asteroid

I have a bunch of sales data by company.  I want to sum the total sales and then divide the individual company sales by the total.  What's the best way to do this?

6 REPLIES 6
Claje
14 - Magnetar

Hi,

I've attached a quick example of this.


Basically, you use two Summarize tools, one to get the Sum of Sales by Company, and one to get the total Sum of all Sales.  Then you append the two together, and can use a formula to get your final calculation.

 

Claje_SalesPercent.PNG


Hope this helps!

bsolove
8 - Asteroid

I tried this initially, but I received an error that says "There are more than 16 records in the source."

ydmuley
12 - Quasar
12 - Quasar

Hello @bsolove you are getting this error on which tool?

Regards,
Yugandhar Muley (Yug)

Alteryx ACE | Alteryx For Good India Lead | Bengaluru Alteryx User Group Lead
Claje
14 - Magnetar

The total Sales which connects to the "S" input of the Append fields should only have one record, based on my understanding of your requirements.

 

Are you getting more than one record on this side?

bsolove
8 - Asteroid

That error was on the append field tool.

bsolove
8 - Asteroid

That worked when I switched the connector.  Thanks!

Labels