<?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 YTD Weighted Average in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-Weighted-Average/m-p/787806#M4398</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have data in a table which i need to calculate a dynamic weighted avergage YTD calculation in a matrix table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the GL account code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;100359009100 - Is Ore Mined&amp;nbsp;&lt;/P&gt;&lt;P&gt;100359009103 - Is Ore Mined Grade&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data as you can see appears in the same collumn which is also mixed with financials and other physical amounts.&lt;/P&gt;&lt;P&gt;In excel i would just do a sumproduct(Ore Mined Grade:Ore Mined)/Total Ore Mined&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am just really stuck to how i write a formula as i want the formula to be able to calculate the next row which is YTD Ore Mined PPM which is also a weighted average of Ore Mined.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see pictures of the data. The picture of the data only relates to budget&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 2 matrix tables are currently just doing a YTD sum calculation with date filters which is just adding Mined Grade and PPM which is not the result needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions would be great&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2019 05:05:36 GMT</pubDate>
    <dc:creator>pehughes</dc:creator>
    <dc:date>2019-09-10T05:05:36Z</dc:date>
    <item>
      <title>YTD Weighted Average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-Weighted-Average/m-p/787806#M4398</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have data in a table which i need to calculate a dynamic weighted avergage YTD calculation in a matrix table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the GL account code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;100359009100 - Is Ore Mined&amp;nbsp;&lt;/P&gt;&lt;P&gt;100359009103 - Is Ore Mined Grade&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data as you can see appears in the same collumn which is also mixed with financials and other physical amounts.&lt;/P&gt;&lt;P&gt;In excel i would just do a sumproduct(Ore Mined Grade:Ore Mined)/Total Ore Mined&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am just really stuck to how i write a formula as i want the formula to be able to calculate the next row which is YTD Ore Mined PPM which is also a weighted average of Ore Mined.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see pictures of the data. The picture of the data only relates to budget&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 2 matrix tables are currently just doing a YTD sum calculation with date filters which is just adding Mined Grade and PPM which is not the result needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions would be great&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 05:05:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-Weighted-Average/m-p/787806#M4398</guid>
      <dc:creator>pehughes</dc:creator>
      <dc:date>2019-09-10T05:05:36Z</dc:date>
    </item>
  </channel>
</rss>

