formula (Max)

I would like to get the data from the child table.

Parent  ...  Order table

Child ... Detail table

Here is the process what I would like to do.

1. "ID_order" input in the Parent table.

2. "ID_detail" input based on the Parent and input the detail.

3. Return the record to the Parent table.

 

There are 3 kinds of data I want to have.

1st ; The biggest number among the same ID_order

2nd ; The latest date among the same ID_Order

3rd ; The biggest number of Row among the same ID_order

 

How should I describe the formula?

Can I get the record in the Parent?

Attached images are  my ideal target.

スクリーンショット 2022-03-14 10.54.13.pngスクリーンショット 2022-03-14 10.55.00.png

 

Solved Solved
0 12 321
1 ACCEPTED SOLUTION

You will have a virtual column called something like [Related Details] in the parent Order table.

You could create three VCs with expressions something like 

1st ; The biggest number among the same ID_order

MAX([Related Details][Size])

2nd ; The latest date among the same ID_Order

MAX([Related Details][Delivery Date])

3rd ; The biggest number of Row among the same ID_order

MAX([Related Details][_ROWNUMBER])

https://help.appsheet.com/en/articles/2357296-max

https://help.appsheet.com/en/articles/1090811-dereference-expressions

If you wish to have these columns values stored in real columns in the parent table, please evaluate reference actions.

https://www.appsheet.com/templates/This-app-shows-how-to-use-reference-actions?appGuidString=e76d2e7...

View solution in original post

12 REPLIES 12
Top Labels in this Space