Free Trial

Alteryx Designer Desktop Discussions

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

logic

Ekmi9
8 - Asteroid

Error

19 REPLIES 19
Ekmi9
8 - Asteroid

hey @mceleavey 

 

do you have any logic in mind for that ?

 

thanks in advance!

mceleavey
17 - Castor
17 - Castor

Hi @Ekmi9 ,

 

Yes, it needs an iterative macro, but I'm currently on with a client. I'll build this for you later today.

 

M.



Bulien

mceleavey
17 - Castor
17 - Castor

Hi @Ekmi9 ,

 

Ok, I built an iterative macro to do this for you, and I get the same figures as you until one row. I cannot get the numbers to reconcile and the only thing I can think of is you've typed on number incorrectly, or you have provided the incorrect logic.

 

These are the figures I get applying the logic you have proided:

mceleavey_0-1662561572370.png

As you can see, my calculated figures on row 15 show a balance of 16925859.33 where yours shows 1692589.33. It looks like you've missed the second 5, or I've missed something huge.

 

Let me know if that's a mistake on your part or not.

 

Thanks,

 

M.



Bulien

Ekmi9
8 - Asteroid

@mceleavey ho apologies for that it typo error

Ekmi9
8 - Asteroid

@mceleavey can you please share the workflow and mcro for my reference it would be grate help for me 

 

Thanks in advance !

mceleavey
17 - Castor
17 - Castor

@Ekmi9 ,

 

I built this as an iterative macro, and it's probably going to be a bit complicated to go over the entire thing, but the logic is as follows:

 

the data is first split into types, subs and redemptions, the first of which is take from each one. Then, the redemption amount is taken from the sub amount giving a balance, and adjusting the amount on the sub down to that balance. The redemption is then given the balance and is fed out. The sub then iterates around with it's remaining balance and the next redemption is applied. This is repeated until the balance of the sub drops to zero, at which point it is fed out with it's initial amount and the next sub is taken for the remaining redemptions.

 

And so on until all are done.

 

I've attached this as an extraction so it will install the macro for you.

I hope this helps,

 

M.



Bulien

Ekmi9
8 - Asteroid

Ekmi9_0-1662566125896.png

I have version issue for cleansing macro

 

mceleavey
17 - Castor
17 - Castor
Ekmi9
8 - Asteroid

@mceleavey 

Thank you so much but due to version mismatch i  macro issue i am not able to open

mceleavey
17 - Castor
17 - Castor

Ok, that may be a problem, but try the following.

I've attached the workflow and the macro. Copy the .yxmc file to your macro folder, then open the workflow. I have amended the XML in the file to be version 2021.1 but I recommend upgrading your version soon.

 

 

M



Bulien

Labels
Top Solution Authors