<?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: Column Mean using only part of the dataset in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Compute-Column-Mean-while-restricting-observations-used/m-p/10378#M10056</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The column functions operate on the whole table, ignoring selection and exclusions. However, you can make a formula column that's dependent on the row state and use that column as a BY variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14190183130733977" jivemacro_uid="_14190183130733977"&gt;&lt;BR /&gt;&lt;P&gt;New Column( "mysel", Formula( Selected( Row State() ) ) );&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;New Column( "meany", Formula( Col Mean( :y, :mysel) ) );&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're using the global data filter with selection turned on, the Column Means will be recomputed whenever the selection changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Dec 2014 19:45:37 GMT</pubDate>
    <dc:creator>XanGregg</dc:creator>
    <dc:date>2014-12-19T19:45:37Z</dc:date>
    <item>
      <title>Compute Column Mean while restricting observations used</title>
      <link>https://community.jmp.com/t5/Discussions/Compute-Column-Mean-while-restricting-observations-used/m-p/10377#M10055</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to get a column mean into a new column but I want to be able to restrict the date range that I use.&amp;nbsp; I want to be able to say get column mean from day x to day y in my formula.&amp;nbsp;&amp;nbsp; This is the current formula that i have:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;New Column ("X",&lt;/P&gt;
&lt;P&gt;Numeric,&lt;/P&gt;
&lt;P&gt;Continuous,&lt;/P&gt;
&lt;P&gt;Format ("Best", 12),&lt;/P&gt;
&lt;P&gt;Formula (Col Mean (:WeeklyPercent, :Week, :Source)), Set Selected);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It pull the average weekly percent by week and source of the data which is perfect, however, even when I put a data filter on the dataset it still pulls the mean for the entire data set by those two by variables.&amp;nbsp; I want to be able to change the date range that those column means are from.&amp;nbsp; Can anyone help me with that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 20:43:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Compute-Column-Mean-while-restricting-observations-used/m-p/10377#M10055</guid>
      <dc:creator>chadyoder</dc:creator>
      <dc:date>2017-09-15T20:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Column Mean using only part of the dataset</title>
      <link>https://community.jmp.com/t5/Discussions/Compute-Column-Mean-while-restricting-observations-used/m-p/10378#M10056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The column functions operate on the whole table, ignoring selection and exclusions. However, you can make a formula column that's dependent on the row state and use that column as a BY variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14190183130733977" jivemacro_uid="_14190183130733977"&gt;&lt;BR /&gt;&lt;P&gt;New Column( "mysel", Formula( Selected( Row State() ) ) );&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;New Column( "meany", Formula( Col Mean( :y, :mysel) ) );&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're using the global data filter with selection turned on, the Column Means will be recomputed whenever the selection changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 19:45:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Compute-Column-Mean-while-restricting-observations-used/m-p/10378#M10056</guid>
      <dc:creator>XanGregg</dc:creator>
      <dc:date>2014-12-19T19:45:37Z</dc:date>
    </item>
  </channel>
</rss>

