Skip to main content
Solved

Data estructure

  • February 23, 2024
  • 4 replies
  • 29 views

Forum|alt.badge.img+1

Hi there: There are two records with to dates, I need to use the DATETIME_DIFF function, but it only works If I have the fields side by side, not in two diferent records. How can I work this out?

Best answer by Alexey_Gusev

Hi,
All 'vertical' computing must be done in a table, where these records are linked (in your case, where 'Nomrbe' column linked.)
You should add rollup field and use formula, for example DATETIME_DIFF(MIN(values), MAX(values),'days'). On the record, where primary field value is 'MARIA PRISCILA', and these 2 records are linked to, it will give you  a difference between MIN and MAX dates of linked records.

4 replies

Sistema_Aotearo
Forum|alt.badge.img+20

I think a formula isn't what you're looking for. Might be something you can configure in an interface? Not sure how complex your base is, but you could give it a go with the new dashboard interfaces.


TheTimeSavingCo
Forum|alt.badge.img+31

You'll need to link the two records together and use a lookup field to display the date from the linked record I'm afraid


Alexey_Gusev
Forum|alt.badge.img+25
  • Brainy
  • Answer
  • February 25, 2024

Hi,
All 'vertical' computing must be done in a table, where these records are linked (in your case, where 'Nomrbe' column linked.)
You should add rollup field and use formula, for example DATETIME_DIFF(MIN(values), MAX(values),'days'). On the record, where primary field value is 'MARIA PRISCILA', and these 2 records are linked to, it will give you  a difference between MIN and MAX dates of linked records.


Forum|alt.badge.img+1
  • Author
  • New Participant
  • February 26, 2024

Hi,
All 'vertical' computing must be done in a table, where these records are linked (in your case, where 'Nomrbe' column linked.)
You should add rollup field and use formula, for example DATETIME_DIFF(MIN(values), MAX(values),'days'). On the record, where primary field value is 'MARIA PRISCILA', and these 2 records are linked to, it will give you  a difference between MIN and MAX dates of linked records.


Thanks