Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- JMP User Community
- :
- Discussions
- :
- Re: How to update column formulas

News

We’re asking you to select a content label when starting a new topic in the Discussions area. Read more to find out why.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Apr 20, 2018 1:42 PM
(9139 views)

Hello,

I am working with files with ~300K rows with 85 columns (quite a few formula columns). I am wondering if there is a button or JSL command that can prompt all columns and their dependents to update.

I am finding that some columns are not automatically updating.

Thank you

2 ACCEPTED SOLUTIONS

Accepted Solutions

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

This statement will rerun all of the formulas. You could add it to the tool bar if you want

`current data table() << Rerun Formulas.`

Jim

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Click on the red triangle to the left of the data table name (top left of the script area, just below toolbar).

Bottom of the dropdown that will appear: Rerun Formulas

Thanks to Jerry Cooper for teaching me that one!

8 REPLIES 8

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

This statement will rerun all of the formulas. You could add it to the tool bar if you want

`current data table() << Rerun Formulas.`

Jim

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: How to update column formulas

Thank you!

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: How to update column formulas

@txnelson gave you a good solution but I'm concerned about the circumstances under which the formulas are not being re-evaluated automatically.

@bio_grad, can you send any details about this to support@jmp.com? If there's an issue that needs to be addressed we want to look at it.

Thanks.

-Jeff

Highlighted
##

Hi Jeff, I can't seem to replicate the issue now. What I think might have happened is that I accidentally clicked 'cancel' instead of 'apply' after modifying a formula without realizing.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: How to update column formulas

Highlighted
##

Jeff, I have seen this recently (JMP 14.3.0) on formulas which use the Date Difference function to calculate the time between a fixed date (column in the data table) and the current date (today()). An example file is attached. It was created today (6/14/19) and is fine, but if checked tomorrow or later the formulas will not properly evaluate until refreshed.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: How to update column formulas

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: How to update column formulas

@RobinFriedman thanks for the post. Formulas in data tables are not re-evaluated when a data table is opened. The thought is that the formula was evaluated before the data table was saved and nothing changed, so no need to re-evaluate.

Also, the data table doesn't treat formulas with Today() in them as special and constantly look at the date and re-evaluate.

So, in your case, if you want that column to be reevaluated when the data table is opened to reflect today's date, you'll need force it by adding a script named OnOpen to the data table. That script will be run whenever the data table is opened.

You can use the Eval Formula message to a column to force it to re-evaluate. So the OnOpen script would be:

`col<<Eval Formula`

If you want to evaluate all the formulas in the data table when it is opened you can use the Rerun Formulas message to the data table:

`dt<<Rerun Formulas`

-Jeff

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Click on the red triangle to the left of the data table name (top left of the script area, just below toolbar).

Bottom of the dropdown that will appear: Rerun Formulas

Thanks to Jerry Cooper for teaching me that one!

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: How to update column formulas

Awesome! I didn't even think to check. Thanks