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.

Multi Column formulae

ammar90
5 - Atom

Hi I am looking a short way to write the formulae to calculate the difference of below

 

Like Redemption_A_Sum_Cost - Redemptions_A

Redemption_B_Sum_Cost - Redemption_B and so on for 1000 of similar columns

 

Instead of writing manually - I am sure there is a shortcut to calculate

 

like in excel if you write B4-C4 and simply drag that formulae to other cells give you the results

 

Attaching the file

ammar90_0-1612984487895.png

 

3 REPLIES 3
AngelosPachis
16 - Nebula

Hi @ammar90 ,

 

Here is one way to do it. It needs a bit more effort than dragging/dropping in Excel, but it still works I think

 

AngelosPachis_0-1612985313488.png

 

pedrodrfaria
13 - Pulsar

Hi @ammar90 

 

You can try to create a different logic instead of using the formula tool to just manually do the calculations. Event though, at least looking at this example, if you be MUCH quicker to just write the functions using the formula.

 

The other logic would be to do a transpose and then a crosstab to align the respective columns for the correct calculation to then do the calculations, but this isn't the best logic to use in this case imo.

 

Pedro.

afv2688
16 - Nebula
16 - Nebula

Hello @ammar90 ,

 

let me know if this works for you 🙂

 

Regards

Labels
Top Solution Authors