<?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: Calculate Inventory Turns in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Calculate-Inventory-Turns/m-p/402717#M12016</link>
    <description>&lt;P&gt;Actually StockSales is incorrect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I get the sum of last 12 months sales when I select a month and year from a slicer. So I select 2018 / 03?&lt;/P&gt;</description>
    <pubDate>Tue, 24 Apr 2018 02:30:48 GMT</pubDate>
    <dc:creator>jausting</dc:creator>
    <dc:date>2018-04-24T02:30:48Z</dc:date>
    <item>
      <title>Calculate Inventory Turns</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculate-Inventory-Turns/m-p/397922#M11858</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to calculate a rolling inventory turn for the past 12 months through direct query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The user can select the ending period by either using a selector YEAR, then MONTH. So I could select year 2018, then month 01. So I would want to calculate the inventory turns using EOM_STK table, field - SALES. This would be from Feb-17 to Jan 18.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I calculate stock turns as Sales for past 12 months, divided by EOM_STK( Stock on Hand)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the user selects Jan-18 and I would plot inventory turn for Jan-18 by using total sales of Feb-17 to Jan-18 divided by EOM stock on hand for Jan-18&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to plot a line graph for the past 12 months of the inventory turns each month&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for example&lt;/P&gt;&lt;P&gt;Jan-18&amp;nbsp; &amp;nbsp; 3.1&lt;/P&gt;&lt;P&gt;Dec-17&amp;nbsp; &amp;nbsp;3.2&lt;/P&gt;&lt;P&gt;Nov-17&amp;nbsp; &amp;nbsp;3.0&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;FEB=17&amp;nbsp; &amp;nbsp;2.8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have looked at some examples using calculate, however, the key words, DATEADD, PREVIOUSYEAR &amp;amp; others eithe cannot be used or&amp;nbsp;not valid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Obviously, I would want to control here is actually 12 months of data once the user has selected the ending period and return an error if not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anybody help ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 09:09:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculate-Inventory-Turns/m-p/397922#M11858</guid>
      <dc:creator>jausting</dc:creator>
      <dc:date>2018-04-17T09:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Inventory Turns</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculate-Inventory-Turns/m-p/398984#M11880</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/61398"&gt;@jausting&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may take a look at the following post.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://community.powerbi.com/t5/Desktop/Report-on-Current-Calendar-Month-Excluding-Today/m-p/346431#M155473" target="_blank"&gt;http://community.powerbi.com/t5/Desktop/Report-on-Current-Calendar-Month-Excluding-Today/m-p/346431#M155473&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 09:14:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculate-Inventory-Turns/m-p/398984#M11880</guid>
      <dc:creator>v-chuncz-msft</dc:creator>
      <dc:date>2018-04-18T09:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Inventory Turns</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculate-Inventory-Turns/m-p/399599#M11899</link>
      <description>&lt;P&gt;Thanks for your response Sam.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used DATEDIFF in my measure to allow segmententation of the information I require. I have to add a filter so that perioddate always has 12 months of data to use, otherwise the stock turn figure will be incorrect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are the measures I used&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;StockSales = CALCULATE ( SUM ( 'EOM_STK'[Sales] ), DATEDIFF(EOM_STK[perioddate], EOM_STK[perioddate],MONTH) &amp;lt;= 12)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;StockTurns = DIVIDE(EOM_STK[StockSales],sum(EOM_STK[SOH]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your reponse.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 23:39:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculate-Inventory-Turns/m-p/399599#M11899</guid>
      <dc:creator>jausting</dc:creator>
      <dc:date>2018-04-18T23:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Inventory Turns</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculate-Inventory-Turns/m-p/402717#M12016</link>
      <description>&lt;P&gt;Actually StockSales is incorrect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I get the sum of last 12 months sales when I select a month and year from a slicer. So I select 2018 / 03?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 02:30:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculate-Inventory-Turns/m-p/402717#M12016</guid>
      <dc:creator>jausting</dc:creator>
      <dc:date>2018-04-24T02:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Inventory Turns</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculate-Inventory-Turns/m-p/403188#M12028</link>
      <description>&lt;P&gt;Does anybody know how to resolve this ?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 10:53:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculate-Inventory-Turns/m-p/403188#M12028</guid>
      <dc:creator>jausting</dc:creator>
      <dc:date>2018-04-24T10:53:51Z</dc:date>
    </item>
  </channel>
</rss>

