Forum Discussion
MarkShnier__You
Qrew Legend
Are these various past dates in a child table? Is the reference date on the parent record and the child Table has all of the possible past dates to evaluate?
------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
------------------------------
------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
------------------------------
KarthikSekhar1
3 years agoQrew Member
In my case I am trying to write a formula for each month of this year. For example, I will have a formula field called Apr 2022. So, Firstdayofmonth(Apr2022) is my reference. The other dates are coming from child table. I am using the Max function to get the Max date and then Max Date - 1. Lets say the Max Date is May 2022 and Max Date - 1 is Jan 2022. need to be able to write a formula for Apr 2022 with these as my inputs. The formula should evaluate to Jan 2022 (i.E. the nearest past date).
------------------------------
Karthik Sekhar
------------------------------
------------------------------
Karthik Sekhar
------------------------------
- MarkShnier__You3 years agoQrew LegendCan you confirm that all these fields are date field types? I.e. not just the words in a text field but actual date fields?
------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
------------------------------- KarthikSekhar13 years agoQrew MemberYes
------------------------------
Karthik Sekhar
------------------------------- MarkShnier__You3 years agoQrew LegendOK, easy peasy,
Look up Reference date down to the child table.
Then make a summary field on the relationship to find the Maximum Past Date subject to the filter that the Past Date is less than the Reference Date.
(not sure if you want less than or less than or equal to)
------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
------------------------------