Alteryx Designer Desktop Discussions

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

Need to split data based on 30% of total then 70% of total.

peyton-louden
7 - Meteor

Hello, I am trying to create a flow that separates some amounts and assign them to two groups based on the percent of the total. One group needs to be 30% of the total amount and assigned group number "1" then group "2" needs to be the other 70%. 

 

I've been stumped on trying to fix for some time would appreciate some help. 

 

Also, I have uploaded some sample data for reference. 

 

Thanks. 

2 REPLIES 2
Luke_C
17 - Castor

Hi @peyton-louden 

 

Here's how I'd approach this:

 

  1. Summarize tool to get total
  2. Append total back to each record
  3. Compute % of total for each record
  4. Running total to sum the %s
  5. Formula to check if the running total is <30% and assign the group.

You can apply whatever sorting you'd like before this process (i.e. values low to high) and it should still work.

Luke_C_0-1629834215037.png

 

peyton-louden
7 - Meteor

This works great! Thanks!

Labels