Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

line item Percentage splits per unique ID

David_Little
7 - Meteor

How would I go about calculating the percentage split of totals for each unique ID ?

 

Example image below: The example input data is highlighted in yellow and what I'm after is in green.

David_Little_0-1651745105845.png

 

Many thanks in advance !

 

6 REPLIES 6
IraWatt
17 - Castor
17 - Castor

Hey @David_Little,

There's probably a quicker way of achieving this but I would do it like this:

IraWatt_0-1651745790884.png

The Summery gets the overall total, then the append adds that as a row to each element which is then used in the formula to divide the amount by the total. 

If you have any questions on how this works make sure to ask :)

HTH,

Ira

 

David_Little
7 - Meteor

Hi @IraWatt I think that's a little different from what I'm after. It is not a percentage of the total column, it's a percentage of the total per ID.

 

So in your example, as there is only 1 unique ID per line, each line would be 1.00 (100% of the ID total)

DataNath
17 - Castor
17 - Castor

Think this is what you're after?

 

DataNath_0-1651746583137.png

 

binuacs
21 - Polaris

@David_Little  or something like this?

 

binuacs_0-1651746653917.png

 

IraWatt
17 - Castor
17 - Castor

Ah apologies @David_Little , I've adjusted the workflow:

IraWatt_0-1651746664546.png

Now the summary groups by ID 

 

 

David_Little
7 - Meteor

@DataNath  Jeez... That's so simple I cannot believe I didn't figure that out 😂 Many thanks !

Labels
Top Solution Authors