Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Multi-Row Formula tool

AjaySetty
8 - Asteroid

Is it possible to restrict Multi-Row Formula tool to work on specific rows and not on complete sheet?

I have few rows where I am removing duplicates but its impacting in other rows where I don't want to change.

 

GL a/c DescriptionCompany CodeAccount CodeDrCrDescription
Net pay clearing66022610026353178-26353178Net Pay salary - 
Net pay clearing66022610026353178-26353178Net Pay salary - 
Payroll Tax payable clearing66022620015000-15000P.Tax - remittance made 
Payroll Tax payable clearing66022620015000-15000P.Tax - remittance made 
6 REPLIES 6
DawnDuong
13 - Pulsar
13 - Pulsar

hi @AjaySetty 

You can do this by writing the IF function with the multi-Row tool.

E.g

IF < qualified condition>

THEN <do what you want the multi row tool to do>

ELSE <keep the values to the current row value>

ENDIF

 

If you share the mock-up data, the community members can help you do a mock-up solution.


dawn.

 

AjaySetty
8 - Asteroid

Thanks, here is a mock data and I want to zero/remove numbers from highlighted cells in sheet.

 

dfurlow
8 - Asteroid

Not sure what conditions need to be applicable in order to 0 or remove the highlighted values... but here is a multi-row example... that produces the results i think you are describing...

danilang
19 - Altair
19 - Altair

Hi @AjaySetty 

 

In situations like these you need to precisely define the rules of when you want to apply the changes and when you don't.  For instance the following workflow gives you the output your looking for, but probably not for the reasons that you want.  

 

danilang_0-1627738769810.png

It adds a subrowID and then uses this to remove the alternate values from the CR and DR columns, to give you this. 

danilang_1-1627738851152.png

The output matches your requirements, but likely won't work with your real data.  In order to get something that works in all cases, you need to explicitly write down the rules to transform your input into your outputs for all cases.  Your situation probably includes rules like the following and most likely others 

 

- If the previous debit is the same as the current one then 0 the current

- if the next credit is the same as the current then 0 out the current

 

Without a set of rules, we have no way of knowing what you want to do.

 

Dan

 

dfurlow
8 - Asteroid

exactly

AjaySetty
8 - Asteroid

Thanks for the solution, spent a lot of time experimenting with different criteria's and got almost closer to what you suggested.

That helps.

Labels