Help

Re: Formula to Calculate Date from Linked Table

Solved
Jump to Solution
326 1
cancel
Showing results for 
Search instead for 
Did you mean: 
gospelsoulcare
4 - Data Explorer
4 - Data Explorer

I have a base that has client names in a table and appointment date on another table that is linked to the specific client. I am trying to create a formula in the client table that will display the last appointment for that that client that was scheduled and another formula field that will display the next appointment date for that client. 

When I try to create a formula to look at the linked appointment date table from clients, it says it can't be calculated because it's not a date. 

Is there any way to make this work, which I am missing? Thanks in advance.

1 Solution

Accepted Solutions

Hello,

One way to do that is to transform appointments dates in number so that you can use MIN and MAX functions.

Here is a table of appointments with 4 dates for the same client:

Pascal_Gallais_0-1728559056227.png

I add 2 fields to this table:

Pascal_Gallais_1-1728559111375.png

"Number_Date" transforms the date into a number:

Pascal_Gallais_2-1728559154795.png

"Status" is a formula to specify if it is a past date or a date to come:

Pascal_Gallais_3-1728559267644.png

I can now add 2 rollup fields in table client to get the last and next appointments:

Pascal_Gallais_4-1728559340148.png

Pascal_Gallais_6-1728559391696.pngPascal_Gallais_7-1728559407604.png

If needed, some more formulas can be added to table Client transform "Last" and "Next" as date fields.

Regards,

Pascal

 

 

See Solution in Thread

2 Replies 2

Hello,

One way to do that is to transform appointments dates in number so that you can use MIN and MAX functions.

Here is a table of appointments with 4 dates for the same client:

Pascal_Gallais_0-1728559056227.png

I add 2 fields to this table:

Pascal_Gallais_1-1728559111375.png

"Number_Date" transforms the date into a number:

Pascal_Gallais_2-1728559154795.png

"Status" is a formula to specify if it is a past date or a date to come:

Pascal_Gallais_3-1728559267644.png

I can now add 2 rollup fields in table client to get the last and next appointments:

Pascal_Gallais_4-1728559340148.png

Pascal_Gallais_6-1728559391696.pngPascal_Gallais_7-1728559407604.png

If needed, some more formulas can be added to table Client transform "Last" and "Next" as date fields.

Regards,

Pascal

 

 

This worked great for me. Thanks!