Free Trial

Alteryx Designer Desktop Discussions

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

transformation and formula challenge

pangersandmash
8 - Asteroid

Hello

 

I am stuck on a problem- wondering if anyone can help please.

 

I basically want to write a rule that says 'when an invoice has FTA, PUBINS, and PCCR, allocate the full amount to PUBINS'.

 

But, only for these 3. The screenshot below should help.

pangersandmash_0-1638887565574.png

 

I tried to use a cross tab tool so i have something like the below

pangersandmash_1-1638887730973.png

 

but i couldn't get any further. Any advice?

 

Thanks

10 REPLIES 10
TheOC
15 - Aurora
15 - Aurora

hey @pangersandmash 

Are you able to attach the excel 'before' table please?

Thanks!
TheOC


Bulien
pangersandmash
8 - Asteroid

This is it. An example of one invoice. There is a column that says 'product type'. It is the ADD ONS that i want to do this for.

 

Thank you

 

TheOC
15 - Aurora
15 - Aurora

hey @pangersandmash 

I believe to have done what you needed. I've tried to annotate formula where used.

TheOC_0-1638890233856.png

Effectively i crosstab the data to this:

TheOC_1-1638890252414.png



Then create a flag if FTA, PCCR and PUBINS are all not null.

 

TheOC_2-1638890337619.png

 

 

If this flag is present, add the values to the PUBINS field, and null the other two:

TheOC_3-1638890364857.png



I've gave you two outputs too - one as such:

TheOC_4-1638890391843.png



And one in the format you shown:

TheOC_5-1638890408530.png



Hopefully this helps!
TheOC

 


Bulien
TheOC
15 - Aurora
15 - Aurora

Whoops, forgot to attach workflow!

Cheers,
TheOC


Bulien
pangersandmash
8 - Asteroid

Thank you! the second output looks ideal. What are the selections on the Cross tab/ transpose? Alternatively would you be able to please send the workflow?

Thanks

TheOC
15 - Aurora
15 - Aurora

hey @pangersandmash 

Workflow attached on second message - sorry i had forgotten on the first.

Let me know if it works for you!

Cheers,
TheOC


Bulien
pangersandmash
8 - Asteroid

pangersandmash_0-1638892045987.png

 

 

I keep getting this message- it won't let me import into Alteryx ?!

TheOC
15 - Aurora
15 - Aurora

hey @pangersandmash 

Try this one, you will have to change the input data.

Cheers,
TheOC


Bulien
pangersandmash
8 - Asteroid

works perfect. Thank you so much!

Labels
Top Solution Authors