Getting Last Date From Multiple Columns

Good Day All,

Im wondering How I would Get the latest Date/most recent Date from Multiple Columns Spread over 2 Tables.

I would be placing this latest date in a virtual Column in the Parent Table, Table A.
The problem is Table A can have many many Childs in table b. How would I Sift through each one to find the latest date of all of them? It is possible that multiple columns will have the same most recent date. I only need 1 Date,

Table A
2 Date Columns

Table B.
Child of A.
Has 8 Date Columns.

0 5 204
5 REPLIES 5

Steve
Platinum 4
Platinum 4

Try:

MAX(
  LIST(
    [Date column 1],
    [Date column 2]
  )
  + [Related Table Bs][Date column 1]
  + [Related Table Bs][Date column 2]
  ...
  + [Related Table Bs][Date column 8]
)

So The editor is telling me
The inputs for function โ€˜MAXโ€™ should be a list of numeric values

MAX(
  LIST(
  [LR Third Party Certificate]
   [LR Proposition 65]
  )
  + [Related Products][LR Product Specifications]
  + [Related Products][LR Allergen Statement]
  + [Related Products][LR GRAS Statements]
  + [Related Products][LR Organic Certificate]  
  + [Related Products][LR Gluten Free Statement]
  + [Related Products][LR NON GMO Statement]
  + [Related Products][LR Kosher Statement]
  + [Related Products][LR Radiological Statement]
)

I also thought I would Try to Remove the Blanks with this (Not sure if this is possible, or correct)
The editor still outputs the same error.

MAX(
((LIST(
  [LR Third Party Certificate]
   [LR Proposition 65]
  )
  + [Related Products][LR Product Specifications]
  + [Related Products][LR Allergen Statement]
  + [Related Products][LR GRAS Statements]
  + [Related Products][LR Organic Certificate]  
  + [Related Products][LR Gluten Free Statement]
  + [Related Products][LR NON GMO Statement]
  + [Related Products][LR Kosher Statement]
  + [Related Products][LR Radiological Statement]
) - List(""))
)

It is also possible that some entries are blank. Does this make a difference?

Iโ€™ve also tried setting all my column Types to DateTime instead.

Missing comma?

3X_d_d_dd9935f548a0b9d5ffd485635bb240f969d98485.png

O Man

Thanks Steve,

Looking back, I omitted the comma in my suggestion, so my bad! I corrected my suggestion.

Top Labels in this Space