<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Re-evaluate a Formula for a report based on the subset on the data selected in Local Data Filter in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Re-evaluate-a-Formula-for-a-report-based-on-the-subset-on-the/m-p/440452#M68887</link>
    <description>&lt;P&gt;Hello, I face the same issue today and tried the solution of &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;. Unfortunately the formula is not updated when I use it with a local data filter. Did I miss something? Or is the solution not working anymore with JMP 16?&lt;/P&gt;</description>
    <pubDate>Mon, 29 Nov 2021 10:03:52 GMT</pubDate>
    <dc:creator>anne_sa</dc:creator>
    <dc:date>2021-11-29T10:03:52Z</dc:date>
    <item>
      <title>Re-evaluate a Formula for a report based on the subset on the data selected in Local Data Filter</title>
      <link>https://community.jmp.com/t5/Discussions/Re-evaluate-a-Formula-for-a-report-based-on-the-subset-on-the/m-p/53829#M30409</link>
      <description>&lt;P&gt;Dears,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anybody give a hint, if it is possible to re-evaluate a Formula for a report based on the subset on the data selected in Local Data Filter?&lt;/P&gt;
&lt;P&gt;E.g. my formula is&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Sum(:aval, :ID)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In the screenshot attached, only line9 meets the&amp;nbsp;local data filter conditions. Is it possile to create a formula which would return 1 instead of 2 (since within ID= V2_7 only 1 record with aval = 1 would be summed)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would strongly prefer&amp;nbsp;an intercative solution (without actually subsetting the table or creating summary table). I learned that the Col ... formulas can caluculate the statistics based on the "Selected()" Row state, therefore I suppose there could be a way&amp;nbsp;of doing&amp;nbsp;something similar based on the Local Data Filer subset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another solution which could partially meet my requirements would be availablility of N Categories(:var)&amp;nbsp;Summary Statistic in the Graph Builder, but as far as I understand it's not available yet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot!&lt;/P&gt;
&lt;P&gt;Alex.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screen1.JPG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/10080i6D27F52B4D83B292/image-size/large?v=v2&amp;amp;px=999" role="button" title="screen1.JPG" alt="screen1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 14:04:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Re-evaluate-a-Formula-for-a-report-based-on-the-subset-on-the/m-p/53829#M30409</guid>
      <dc:creator>MrSmith</dc:creator>
      <dc:date>2018-03-26T14:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Re-evaluate a Formula for a report based on the subset on the data selected in Local Data Filter</title>
      <link>https://community.jmp.com/t5/Discussions/Re-evaluate-a-Formula-for-a-report-based-on-the-subset-on-the/m-p/53835#M30414</link>
      <description>&lt;P&gt;By using an If() clause in the Col Sum() function, you can exclude the Excluded rows&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

// Open the data table
dt = Open( "$SAMPLE_DATA\Blood Pressure.jmp" );

// Set it up to look like your data
dt &amp;lt;&amp;lt; delete columns(
	{"BP 12M", "BP 6M", "BP 8W", "BP 12W", "BP 6W", "BP 8F", "BP 12F",
	"BP 6F"}
);

dt:Subject &amp;lt;&amp;lt; set name( "ID" );
dt:BP 8M &amp;lt;&amp;lt; set name( "aval" );

// Create the new column
dt &amp;lt;&amp;lt; New Column( "myCol",
	formula( Col Sum( If( Excluded( Row State( Row() ) ), ., :aval ), :ID ) )
);

// Apply a filter
dt &amp;lt;&amp;lt; Data Filter(
	Location( {809, 218} ),
	Mode( Show( 1 ), Include( 1 ) ),
	Add Filter(
		columns( :Dose ),
		Display( :Dose, Size( 160, 60 ), List Display )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Mar 2018 13:03:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Re-evaluate-a-Formula-for-a-report-based-on-the-subset-on-the/m-p/53835#M30414</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-03-26T13:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re-evaluate a Formula for a report based on the subset on the data selected in Local Data Filter</title>
      <link>https://community.jmp.com/t5/Discussions/Re-evaluate-a-Formula-for-a-report-based-on-the-subset-on-the/m-p/53846#M30417</link>
      <description>&lt;P&gt;Thanks a lot Jim!&lt;/P&gt;&lt;P&gt;In fact, what I was looking for is the same functionality directly in the Local Data Filter of the Graph Builder, however this solution should work as well as soon as I can fit this Data Filter together with the Data Table and Graph into a DashBoard (just need to play around a little with this).&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 14:43:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Re-evaluate-a-Formula-for-a-report-based-on-the-subset-on-the/m-p/53846#M30417</guid>
      <dc:creator>MrSmith</dc:creator>
      <dc:date>2018-03-26T14:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Re-evaluate a Formula for a report based on the subset on the data selected in Local Data Filter</title>
      <link>https://community.jmp.com/t5/Discussions/Re-evaluate-a-Formula-for-a-report-based-on-the-subset-on-the/m-p/53848#M30419</link>
      <description>use your local data filter....the formula will work with it too. I used the global filter because I didn't have a platform open</description>
      <pubDate>Mon, 26 Mar 2018 14:50:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Re-evaluate-a-Formula-for-a-report-based-on-the-subset-on-the/m-p/53848#M30419</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-03-26T14:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Re-evaluate a Formula for a report based on the subset on the data selected in Local Data Filter</title>
      <link>https://community.jmp.com/t5/Discussions/Re-evaluate-a-Formula-for-a-report-based-on-the-subset-on-the/m-p/440452#M68887</link>
      <description>&lt;P&gt;Hello, I face the same issue today and tried the solution of &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;. Unfortunately the formula is not updated when I use it with a local data filter. Did I miss something? Or is the solution not working anymore with JMP 16?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 10:03:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Re-evaluate-a-Formula-for-a-report-based-on-the-subset-on-the/m-p/440452#M68887</guid>
      <dc:creator>anne_sa</dc:creator>
      <dc:date>2021-11-29T10:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Re-evaluate a Formula for a report based on the subset on the data selected in Local Data Filter</title>
      <link>https://community.jmp.com/t5/Discussions/Re-evaluate-a-Formula-for-a-report-based-on-the-subset-on-the/m-p/691027#M87698</link>
      <description>&lt;P&gt;The formula in the data table doesn't know the selection of the Local Data Filter of your report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More surprisingly, this is also true for a &lt;STRONG&gt;transform column in a report&lt;/STRONG&gt; - it just ignores the selection of the local data filter of the respective report.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We have become so accustomed to what the summary statistics in graph builder do - automatically.&lt;BR /&gt;With this background, the behavior of Column Formulas feels like a bug:&lt;BR /&gt;&lt;LI-MESSAGE title="Transform Column: Bug with excluded rows" uid="676069" url="https://community.jmp.com/t5/Discussions/Transform-Column-Bug-with-excluded-rows/m-p/676069#U676069" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the words of Jmp Support (TS-00056243)&lt;/P&gt;&lt;P&gt;&lt;EM&gt;It appears the transform column formula is not re-evaluated in response to Local Data Filter changes like it is for Global Data Filter changes. I will report this as a bug.&amp;nbsp; Thank you for pointing it out.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After a while I got the feedback:&lt;BR /&gt;&lt;EM&gt;The issue has been reported and as you assume, development shares that this is behaving as designed, where the transform columns behave just like regular table columns with respect to honoring row states.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Concerning future versions of Jmp, there is an entry in the wish list which suggests to add an &lt;STRONG&gt;option to not ignore&lt;/STRONG&gt; the local data filter:&lt;/P&gt;&lt;P&gt;&lt;LI-MESSAGE title="Transform Columns - as comfortable as Summary Statistics?" uid="676711" url="https://community.jmp.com/t5/JMP-Wish-List/Transform-Columns-as-comfortable-as-Summary-Statistics/m-p/676711#U676711" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;As a workaround with current Jmp, you have to use a REAL column (not a transform column (*)), ask the Local Data Filter for the selected rows via JSL and use the response as an input for the formula:&lt;BR /&gt;&lt;A href="https://community.jmp.com/t5/Discussions/Transform-Column-Bug-with-excluded-rows/m-p/676095/highlight/true#M86284" target="_blank" rel="noopener"&gt;https://community.jmp.com/t5/Discussions/Transform-Column-Bug-with-excluded-rows/m-p/676095/highlight/true#M86284&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Oct 2023 15:48:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Re-evaluate-a-Formula-for-a-report-based-on-the-subset-on-the/m-p/691027#M87698</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-10-28T15:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re-evaluate a Formula for a report based on the subset on the data selected in Local Data Filter</title>
      <link>https://community.jmp.com/t5/Discussions/Re-evaluate-a-Formula-for-a-report-based-on-the-subset-on-the/m-p/691609#M87736</link>
      <description>&lt;P&gt;(*) Along the idea:&amp;nbsp;&lt;STRONG&gt;don't pollute the data table&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;... I wondered if it is possible to use a Transform Column instead of a real column.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, this is not possible:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Discussions/how-to-reference-a-Transform-Column/m-p/691608/highlight/true#M87735" target="_blank" rel="noopener"&gt;https://community.jmp.com/t5/Discussions/how-to-reference-a-Transform-Column/m-p/691608/highlight/true#M87735&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So, at the moment one has to either use a "real column" (see the previous post) - or accept that the solution with a Transform Column is as "automatic" as re-creating the column every time the selection in the local Data filter is changed.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Oct 2023 14:36:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Re-evaluate-a-Formula-for-a-report-based-on-the-subset-on-the/m-p/691609#M87736</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-10-28T14:36:16Z</dc:date>
    </item>
  </channel>
</rss>

