Alteryx Designer Desktop Discussions

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

Calcualtions using fixed cells

G_SAND
8 - Asteroid

HI All

I wonder if someone can help me with this one.

 

I want to do some calculations using a fixed cell with other dynamic cells:

 

 Field1Field2Field3(Explanation)
Row1A120 
Row2B240(Row2,Field2 x Row1,Field3)
Row3C360(Row3,Field2 x Row1,Field3)
Row4H730 
Row5I8240(Row5,Field2 x Row4,Field3)
Row6J9270(Row6,Field2 x Row4,Field3)
Row7K10300(Row5,Field2 x Row4,Field3)
Row8X1540 
Row9Y16640(Row9,Field2 x Row8,Field3)
Row10Z17

680

(Row10,Field2 x Row8,Field3)

 

The numbers in bold in Field3 are already there and those are the fixed calculation points, so its just the calculation to bring the red numbers in.

 

I'm sure someone can give me a solution to this.

 

Thanks in advance.

2 REPLIES 2
nick_ceneviva
11 - Bolide

The attached solution seems to do the trick.  I'm sure there are countless other ways to do this though.

 

The multi-row tool is used to give a grouping ID to the cells below the fixed cells.  Then the rows with the fixed cells are separated from the other rows using the filter tool.  The grouping ID and the fixed cell are appended to the rows that need the calculation for Field3.  The calculation is done and then the fixed cell row is added to the results using the union tool.  The results are then cleaned up using the sort and select tool so that the output matches what was used in your example.

 

Hopefully this helps and let me know if you have questions! 

patrick_digan
17 - Castor
17 - Castor

@G_SAND I just put more logic into the multi-row and formula tools and used a temp field.

Capture.PNG

Labels