cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
TheSource
Level II

Automatic Recalc on block of code?

Context: JMP 17

Hi all,

I am working on a dashboard project where I use a function to generate a bunch of different plots that get stuffed into a big grid for the user to browse. That function handles the plot generation and has its own Where() clause to select from a larger data table which contains lots of other data. The grid of plots then sit inside a local data filter so I can do some high level filtering by data vintage. The plots all automatically recalc so the entire dashboard responds as desired.

 

The next step is to include a set of custom summary statistics (the plot platform summary statistics are not sufficient) for each of the plots. I'm fine using the same where clause as the plots to subset by the specific parameter but the summary statistics also need to be aware of the state of the LDF and update accordingly which is where I'm struggling.

 

My first pass at the problem works by subsetting the big data table with the same where clause as the associate plot, then running a Summary() on that subset and following up the summary by deriving some new columns, renaming old ones, cleaning it up, etc. and then spitting out the result with Get As Report() packaging that with the plot, wrapping both the plot and the statistics in a V Splitter Box, and then returning that V Splitter Box to be inserted into the dashboard grid. However, this approach doesn't seem to be capable of recalculating when the LDF is changed.

 

Am I taking the wrong approach by subsetting, summarizing, and postprocessing the summary? Is there a better way to do this? Is there a way to make a block of code LDF-aware? Even if this works, would I be stuck needing to keep all of the little subsets and summaries active? That might be enough reason to find an alternate approach...

 

Sorry, I don't have an easy way to include code examples so I'm just looking for architectural direction at this point.

 

Thanks!

3 REPLIES 3
jthi
Super User

Re: Automatic Recalc on block of code?

Have you checked if Tabulate / Distribution with customized summary statistics would be enough? You could also possibly use << Make Filter State Handler.

-Jarmo
TheSource
Level II

Re: Automatic Recalc on block of code?

Thanks for the input. The customized summary statistics seems like a dead end to me because I need to integrate success criteria values into each row as well (essentially control limits, but they are not coded as control limits in the table, they come from another file).

Did you mean Make Filter Change Handler? That's the only entry I found in the scripting index. Maybe there was a name change?

 

Thanks

jthi
Super User

Re: Automatic Recalc on block of code?

Yeah << Make Filter Change Handler (State Handler is incorrect).

-Jarmo

Recommended Articles