<?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 Monthly View from Weekly Data in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Monthly-View-from-Weekly-Data/m-p/737542#M19957</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got stuck with a problem in converting from weekly data view to monthly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a file that when on excel will work due to cell reference possibilities but not sure how to manage this on PowerBI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Formula weekly would be&lt;/P&gt;&lt;P&gt;([Stock for this week]/(([Sales for this week]+[Sales for Week+1])/2))*7&lt;/P&gt;&lt;P&gt;I created this by this measure in PowerBI&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Week Calc. DOI = sum(Data[Stock])/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(sum(Data[Deliveries])+CALCULATE(sum(Data[Deliveries]),filter(all(Data[Week #]),Data[Week #]=(SELECTEDVALUE(Data[Week #])+1)))/2)*7&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The Formula for the Monthly view is similar but would be&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;([Starting Stock for Month]/(([Total Sales for this Month]+[Total Sales for Month+1])/2))*30&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The Issue I run into with this formula is that I only need the Stock from the 1st Week of the month, not the sum of all stock as its always weekly starting stock which adds onto each other. The total Sales for this Month and Month + 1 can be a sum of thie first row and the next row.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Can anyone help and give me advice on how to tackle this?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;U&gt;&lt;STRONG&gt;EDIT -&lt;/STRONG&gt;&lt;/U&gt;&lt;STRONG&gt;&amp;nbsp;Find the Data and PBIX file &lt;A title="Test Data for PBIX" href="https://anheuserbuschinbev-my.sharepoint.com/:f:/g/personal/diasjose_fernando_interbrew_net/Em1BJSYvrv1NgAANxg0E9UIBge1tSVWiU0-F_lMIDL1zyg?e=Q0mDoY" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 11 Jul 2019 12:18:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-07-11T12:18:22Z</dc:date>
    <item>
      <title>Monthly View from Weekly Data</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Monthly-View-from-Weekly-Data/m-p/737542#M19957</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got stuck with a problem in converting from weekly data view to monthly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a file that when on excel will work due to cell reference possibilities but not sure how to manage this on PowerBI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Formula weekly would be&lt;/P&gt;&lt;P&gt;([Stock for this week]/(([Sales for this week]+[Sales for Week+1])/2))*7&lt;/P&gt;&lt;P&gt;I created this by this measure in PowerBI&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Week Calc. DOI = sum(Data[Stock])/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(sum(Data[Deliveries])+CALCULATE(sum(Data[Deliveries]),filter(all(Data[Week #]),Data[Week #]=(SELECTEDVALUE(Data[Week #])+1)))/2)*7&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The Formula for the Monthly view is similar but would be&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;([Starting Stock for Month]/(([Total Sales for this Month]+[Total Sales for Month+1])/2))*30&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The Issue I run into with this formula is that I only need the Stock from the 1st Week of the month, not the sum of all stock as its always weekly starting stock which adds onto each other. The total Sales for this Month and Month + 1 can be a sum of thie first row and the next row.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Can anyone help and give me advice on how to tackle this?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;U&gt;&lt;STRONG&gt;EDIT -&lt;/STRONG&gt;&lt;/U&gt;&lt;STRONG&gt;&amp;nbsp;Find the Data and PBIX file &lt;A title="Test Data for PBIX" href="https://anheuserbuschinbev-my.sharepoint.com/:f:/g/personal/diasjose_fernando_interbrew_net/Em1BJSYvrv1NgAANxg0E9UIBge1tSVWiU0-F_lMIDL1zyg?e=Q0mDoY" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Jul 2019 12:18:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Monthly-View-from-Weekly-Data/m-p/737542#M19957</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-11T12:18:22Z</dc:date>
    </item>
  </channel>
</rss>

