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.
SOLVED

Credit or Debit(Contras) ledger transactions from rows to columns

sowjanyayinti
8 - Asteroid

Hard to explain it in a single title but here it goes. I am attaching sample file with input and output tabs. I tried playing with Tile tool, cross tab and transpose tools for far too many hours but not getting what i want. I am pretty sure i am making some silly mistakes. Can anyone help?

 

It basically needs to take the credit and debit rows and make a single row of credit and debit column as shown in the output. If the amounts do not match exactly then it should split it to match as shown in the first example in the input file

13 REPLIES 13
sowjanyayinti
8 - Asteroid

I think I solved one part of the issue. I am attaching the sample workflow I did. Now to work on the weird uneven rows of data. If anyone is up for a fun challenge, help a girl out please. Thanks in advance.

Qiu
21 - Polaris
21 - Polaris

@sowjanyayinti 
This problem looks interesting and yet challenging. Just want to confirm, when you say "Split"? 
Do we only split to two amount, or could be any number of split?

5936: -2894 and  -3042 (two split only)
or could be 5936: -2890, -3040 and -6?

caltang
17 - Castor
17 - Castor

Need a bit more context. Like @Qiu asks, what are the scenarios? Will it always have a match? Or will it sometimes not?

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
sowjanyayinti
8 - Asteroid

@Qiu it can be two or three or sometimes more than 5 :). I am attaching a new test file with such examples. Especially the last one in the input tab, if you notice, some are exact matches and some are not for same name and id.

 

I thought i was able to solve it only to find myself back to square one :). Thank you so much for looking into it.

sowjanyayinti
8 - Asteroid

No takers? :)

caltang
17 - Castor
17 - Castor

I think these codes are supposed to be the same right? IJK888? 

 

image.png

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Qiu
21 - Polaris
21 - Polaris

@caltang 
I think @sowjanyayinti  mentioned that " some are not for same name and id.", which makes this one really challenging.
I have spent some time and not going anywhere with my extended sample data.
As least we should limite the situation that the match only happens for same ID. 😁

caltang
17 - Castor
17 - Castor

I am assuming a few things:

 

image.png

 

This works if the total amounts tally and match. Where I think it falters is when the amounts do not match in their sum totals for those which are of the same Name and ID and varying amounts of negatives and positives.

 

We need to see a scenario where the total does not tally, how do you want to handle that via Excel?

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

Oh? Those codes are meant to be different? If they are then it's much harder... @Qiu 

 

Because how would we know to match to the first value's ID and Name if the other IDs are slightly off?

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Labels
Top Solution Authors