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.

Python to Match Amount based on Group

Divyajyothi7
8 - Asteroid

Hi 

I have following input

 

CurrencyAmount
USD-100.5
USD40.5
USD60
USD22.34
INR-50
INR-50
INR-200.67
INR-100.67
INR33.45

 

Expected Output : 

CurrencyAmountType
USD-100.5Balanced
USD40.5Balanced
USD60Balnced
USD22.34 
INR-50Balanced
INR-50Balanced
INR-200.67Balanced
INR-100.67Balanced
INR33.45 

 

I have tried Python logic, Unable to get expected output
note : my original data will have 700 rows, it will be scrambled, I'm looking for optimized code which can run the flow smoothly

 

@binu_acs please look into this

 

1 REPLY 1
binu_acs
21 - Polaris

@Divyajyothi7 one way of doing this

image.png

Labels
Top Solution Authors