<?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: Weighted average with varying row numbers in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Weighted-average-with-varying-row-numbers/m-p/357734#M60783</link>
    <description>&lt;P&gt;I'm not exactly sure if this is what you mean but Col functions found under Statistical grouping in Formula editor might help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Sum(
	:Name("Concentration of some component in raw material batch [%]") *
	:Name("Weight of Ingoing raw material batch [kg]"),
	:Final product batch
) / Col Sum(:Name("Weight of Ingoing raw material batch [kg]"), :Final product batch)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1612936870493.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30147iC3F30EA7EF1A8A4B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1612936870493.png" alt="jthi_0-1612936870493.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1612936880217.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30148iF53D6290811041DD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1612936880217.png" alt="jthi_1-1612936880217.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Feb 2021 06:03:43 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2021-02-10T06:03:43Z</dc:date>
    <item>
      <title>Weighted average with varying row numbers</title>
      <link>https://community.jmp.com/t5/Discussions/Weighted-average-with-varying-row-numbers/m-p/357643#M60780</link>
      <description>&lt;P&gt;I found Byron's &lt;A href="https://community.jmp.com/t5/JMP-Blog/Easy-moving-average-using-Summation-function/ba-p/30277" target="_self"&gt;great example&lt;/A&gt; of the moving average function, but am having trouble implementing this into a data table of my own. In my table I have listed final product batches that are composes of a varying number of ingoing raw material batches. Each of the raw material batches contains a component at some concentration level and different quantities of the raw material batches are combined into a single final product batch. What I want to do is to calculate a weighted average concentration of the component in the ingoing raw material batches. To make this a little clearer I have color coded the fields for the weighted average in the screenshot below. Each color represents a single, weighted average representative of the final product batch. I have also attached the table to this posting (feel free to show me how to tweak summation directly in this column. Thank you very much in advance.).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Presentation2.jpg" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30138i6CFB070F8EE6A136/image-size/large?v=v2&amp;amp;px=999" role="button" title="Presentation2.jpg" alt="Presentation2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:25:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Weighted-average-with-varying-row-numbers/m-p/357643#M60780</guid>
      <dc:creator>Ressel</dc:creator>
      <dc:date>2023-06-10T23:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted average with varying row numbers</title>
      <link>https://community.jmp.com/t5/Discussions/Weighted-average-with-varying-row-numbers/m-p/357734#M60783</link>
      <description>&lt;P&gt;I'm not exactly sure if this is what you mean but Col functions found under Statistical grouping in Formula editor might help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Sum(
	:Name("Concentration of some component in raw material batch [%]") *
	:Name("Weight of Ingoing raw material batch [kg]"),
	:Final product batch
) / Col Sum(:Name("Weight of Ingoing raw material batch [kg]"), :Final product batch)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1612936870493.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30147iC3F30EA7EF1A8A4B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1612936870493.png" alt="jthi_0-1612936870493.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1612936880217.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30148iF53D6290811041DD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1612936880217.png" alt="jthi_1-1612936880217.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 06:03:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Weighted-average-with-varying-row-numbers/m-p/357734#M60783</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-02-10T06:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted average with varying row numbers</title>
      <link>https://community.jmp.com/t5/Discussions/Weighted-average-with-varying-row-numbers/m-p/357740#M60785</link>
      <description>Great! Thank you - this was precisely what I needed!</description>
      <pubDate>Wed, 10 Feb 2021 07:08:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Weighted-average-with-varying-row-numbers/m-p/357740#M60785</guid>
      <dc:creator>Ressel</dc:creator>
      <dc:date>2021-02-10T07:08:03Z</dc:date>
    </item>
  </channel>
</rss>

