In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Merge Vendor Fields and Sum

hellyars
13 - Pulsar

Help. I want to sum by Vendor across Quantity Range (1-99, 100-499, 500-1000).  Basically 1 column for each field (instead of 3 for Vendor).  Notice how the Vendor can change as the quantity increases.

 

Thanks

 

 

PartVendor1-99Vendor100-499Vendor 500-1000 
13242314ACME$20ACME$15ACME$10 
14212412SPECIALIZED$150SPECIALIZED$125CERVELO$75 
q4623523COMPANY-A$300COMPANY-B$200ACME$100 

 

 

UPDATE....

Desired output

Vendor1-99100-499500-1000
    
6 REPLIES 6
AngelosPachis
16 - Nebula

Hi @hellyars ,

 

One way r=to do that would be with the following workflow

 

AngelosPachis_0-1609366482018.png

Essentially you are pivoting your data multiple times to bring the table in the proper structure which will allow you to aggregate the values for each vendor and make it as dynamic as possible.

 

Hope that helps.

 

Regards,

 

Angelos

Qiu
21 - Polaris
21 - Polaris

@hellyars 
Figure you would need the Part Field

1231-hellyars.PNG

hellyars
13 - Pulsar

@AngelosPachis I've never used the CEIL function before, it will come in handy.  Thanks!

Tyro_abc
11 - Bolide

Hi 

 

I used simple select and union to achieve this.

 

arundhuti726_0-1609367868279.png

 

Best Regards

 

hellyars
13 - Pulsar

@AngelosPachis  I ran into a real world problem.  The Group expression stopped working part way through a workflow and started assigning null() at would have been Group 256.

 

This is where it stops working.

 

Screen Shot 2020-12-31 at 9.22.49 AM.png

AngelosPachis
16 - Nebula

Oops, just saw this @hellyars ,

 

I've replied to the other post you have created cause I saw that first.

 

https://community.alteryx.com/t5/Alteryx-Designer-Discussions/CEIL-RecordID-2-Stops-Working-at-Recor...

 

The issue is probably the data type of the Field "Group". That's probably set to be Byte, but if you change it to an Integer (Int16,32 or 64) that should do it.

 

Hope that helps.

Labels
Top Solution Authors