Alteryx Designer Desktop Discussions

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

Need support on achieving one of the logic in Alteryx from excel data manipulation

Phavaldar
6 - Meteoroid

Hi Community,

 

I have the below data in an Excel file also attached to this post.

 

SL.NO.CompanyAmount
1Amazon40000
2Amazon30000
3Amazon30000
4Amazon70000
5Flipkart55000
6Flipkart30000
7Flipkart53000
8Flipkart20000
9Myntra11000
10Myntra77000
11Myntra20000
12Myntra50000

 

I want the desired output, as below: 

 

SL.NO.CompanyAmount
1Amazon74000
2Amazon98000
3Flipkart85000
4Flipkart73000
5Myntra88000
6Myntra70000

 

explanation, as below:-

 

If the total amount for a particular company is greater than $100,000, then it should split the payment into 2 lines for that respective company, and the split amount shouldn't exceed $100,000. DO NOT DIVIDE DIRECTLY WITH 2 AND SEPARATE.

 

The totals of the split amount should not be greater than 100,000 in 1 row and so on in other rows.

 

Note: In single-line items, the bank doesn't accept payment greater than $100,000. So we need to segregate the payments based on line items present in excel file and the split payment shouldn't exceed $100,000.

 

 

Screenshot 2024-04-20 122650.png

5 REPLIES 5
caltang
17 - Castor
17 - Castor

Like so?

image.png

 

Though I need to ask if it's possible for the amount to exist more than 2 rows per group, and if the amount exceeds 100,000 by default, how do you assign the group?

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Phavaldar
6 - Meteoroid

Yes,  it's possible for the amount to exist more than 2 rows per group.

 

example as below for more understanding - 

pics.png

 

Attached is the excel file for your reference. But really thank you for the support on the issue which I am currently facing to achieve in one of my Alteryx automation. 

caltang
17 - Castor
17 - Castor

@Phavaldar  I will look at it tomorrow when I have time, it is getting late for me - but just curious, are you open to a macro solution as well?

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
caltang
17 - Castor
17 - Castor

Thanks for more data. I think this should do it:

 

image.png

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Phavaldar
6 - Meteoroid

Hi Calvin,

 

Thank you so much for your quick and effective help in solving my Alteryx issue! 😊 Your expertise and willingness to assist are truly appreciated. I'm grateful for the support provided by the Alteryx community. Thanks once again champ "Calvin Tang" 🏆

 

PraveenCapture.PNG

Labels