Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

TESTSUMSUB

nihou
8 - Asteroid

Hello, I am having trouble sorting and subtotaling based on types with various difference?

 

source             
P#NAMEProductCodeDcodePurchCodeC % MP % MVolValType    
500SamGrapesUNITSPSmith0.50.50.50.5    
500SamGrapesMVSPSmith0.50.50.30.3    
500SamGrapesMVSPSmith0.50.50.20.2    
500SamGrapesUNITSRSmith0.50.50.50.5    
500SamGrapesMVSRSmith0.50.50.30.3    
500SamGrapesMVSRSmith0.50.50.20.2    
500SamPearUNITSRSmith0.50.50.750.75    
500SamPearMVSRSmith0.50.50.210.21    
500SamPearMVSRSmith0.50.50.040.04    
desired outcome            
P#NAMEProductCodeDcodePurchCodeC % MP % MVolValTypeVAR1VAR2RESULT 
500SamGrapesUNITSPSmith0.5 0.50.500  
500SamGrapesMVSPSmith 0.50.50.500  
500SamGrapesUNITSRSmith0.5 0.50.500  
500SamGrapesMVSRSmith 0.50.50.500  
500SamPearUNITSRSmith0.5 0.750.75-0.25-0.25FLAG 
500SamPearMVSRSmith 0.50.250.250.250.25FLAG 
2 REPLIES 2
ConnorK
Alteryx
Alteryx

Hi @nihou,

 

Please see the attached workflow. The major part of the solution is using the summarize tool create your groupings then calculating var1 & 2 with a formula tool. The output order is a little bit different but gets the same results.

 

I hope this helps!

Connor Kelleher
Senior Sales Engineer
Alteryx
nihou
8 - Asteroid

@ConnorK Thank you! That worked!

 

Labels