Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔦 Feature: Support use of Rollup's with in formula #6807

Closed
1 task done
dstala opened this issue Oct 26, 2023 · 1 comment · Fixed by #6853
Closed
1 task done

🔦 Feature: Support use of Rollup's with in formula #6807

dstala opened this issue Oct 26, 2023 · 1 comment · Fixed by #6853
Assignees
Milestone

Comments

@dstala
Copy link
Member

dstala commented Oct 26, 2023

Please confirm if feature request does NOT exists already ?

  • I confirm there is no existing issue for this

Describe the usecase for the feature

https://community.nocodb.com/t/reference-rollup-fields-in-functions-inside-formula-columns/917

Suggested Solution

Support use of rollup fields within formula field

Additional Context

No response

@dstala
Copy link
Member Author

dstala commented Oct 27, 2023

from discourse

I am trying to create a custom CRM using nocodb. I currently have two tables →

Leads → A table containing all leads and has fields like name, contact details etc.
Interactions → A table containing all the interactions with Leads and has fields like interaction-notes, date of interaction, mode of interaction etc.
One lead can have multiple interactions so I have a one to many relationship from Lead to Interactions Database.
To find out the latest interaction between for a lead, I use a rollup with Max Function. This is the field called LastInteractionDate.

Now, I am trying to find the time since last interaction with the lead and Today to calculate a field called RottingTime
The formula I wanted to have for RottingTime is DATETIME_DIFF(NOW(),{LastInteractionDate}).
This is where I encountered the above error.

My goal is to send followup reminders based on the value of RottingTime.

@dstala dstala assigned wingkwong and unassigned o1lab Oct 27, 2023
@wingkwong wingkwong mentioned this issue Nov 1, 2023
7 tasks
@wingkwong wingkwong linked a pull request Nov 1, 2023 that will close this issue
7 tasks
@wingkwong wingkwong added this to the vNext milestone Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants