<?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 Dax to count Available Stock based on Demand in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-count-Available-Stock-based-on-Demand/m-p/2501938#M69181</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to have a&amp;nbsp;&lt;SPAN&gt;DAX measure to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1- calculate the total stock at the beginning of selected date where stock status = Delivered per region.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2- calculate total demand per selected date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Stock table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Demand Table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://ufile.io/cbg8hjmd" target="_self"&gt;Sample file&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Many thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 09 May 2022 12:09:54 GMT</pubDate>
    <dc:creator>H_insight</dc:creator>
    <dc:date>2022-05-09T12:09:54Z</dc:date>
    <item>
      <title>Dax to count Available Stock based on Demand</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-count-Available-Stock-based-on-Demand/m-p/2501938#M69181</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to have a&amp;nbsp;&lt;SPAN&gt;DAX measure to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1- calculate the total stock at the beginning of selected date where stock status = Delivered per region.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2- calculate total demand per selected date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Stock table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Demand Table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://ufile.io/cbg8hjmd" target="_self"&gt;Sample file&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Many thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 12:09:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-count-Available-Stock-based-on-Demand/m-p/2501938#M69181</guid>
      <dc:creator>H_insight</dc:creator>
      <dc:date>2022-05-09T12:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dax to count Available Stock based on Demand</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-count-Available-Stock-based-on-Demand/m-p/2502131#M69192</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;I added some dimension tables. I hope this is what you are looking for!&lt;/P&gt;&lt;P&gt;&lt;A title="Stock and Demand" href="https://drive.google.com/file/d/1Rx0tlNTWIi6xzTtYEPhUdYTY_jDQ-k6G/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1Rx0tlNTWIi6xzTtYEPhUdYTY_jDQ-k6G/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 13:13:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-count-Available-Stock-based-on-Demand/m-p/2502131#M69192</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-05-09T13:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dax to count Available Stock based on Demand</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-count-Available-Stock-based-on-Demand/m-p/2502655#M69218</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="179903" data-lia-user-login="Whitewater100" class="lia-mention lia-mention-user"&gt;Whitewater100&lt;/a&gt;&amp;nbsp;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the quick response. Further to your&amp;nbsp;solution, how can I view the remaining product balance in stock after that date?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, in the date range of 10/06/22 to 23/06/22 I had only 40 products (Status = Delivered):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;and the demand was 94 . So I am short by 54 products based on that date range for that specific region. So far so good, but I trying to get the balance beyond&amp;nbsp; 23/60/22? Let's say data range from 24/6/22 to 30/6/22 with a new total demand of 47, that will increase the gap to (54 +47) =101, unless new products were&amp;nbsp;Delivered. Not sure if it's possible or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Updated file &lt;A href="https://drive.google.com/file/d/1M41op9zv8y8ywUXsT87IbvgwH1vaYEGo/view?usp=sharing" target="_self"&gt;link&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 16:37:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-count-Available-Stock-based-on-Demand/m-p/2502655#M69218</guid>
      <dc:creator>H_insight</dc:creator>
      <dc:date>2022-05-09T16:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dax to count Available Stock based on Demand</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-count-Available-Stock-based-on-Demand/m-p/2502920#M69229</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;I think you want to match on your product ID's? What do the ID's represent? There is many id's and multiple regions for Product 1.&amp;nbsp; It looks like you may be comparing deliveries for 9&amp;amp;10 vs Demand for different products?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To answer the questions you can try doing a ytd measure for both. Please see attached link.&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1Rx0tlNTWIi6xzTtYEPhUdYTY_jDQ-k6G/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1Rx0tlNTWIi6xzTtYEPhUdYTY_jDQ-k6G/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can add a YTD calculation if this is only one product under discussion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;YTD Stock(Delivered) = &lt;/SPAN&gt;&lt;SPAN&gt;TOTALYTD&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Stock(Delivered)]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Date'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I hope the two questions are answered now...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;1- calculate the total stock at the beginning of selected date where stock status = Delivered per region.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2- calculate total demand per selected date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 09 May 2022 19:23:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-count-Available-Stock-based-on-Demand/m-p/2502920#M69229</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-05-09T19:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dax to count Available Stock based on Demand</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-count-Available-Stock-based-on-Demand/m-p/2502933#M69231</link>
      <description>&lt;P&gt;Thanks for heping with the extra mile &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 19:29:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-count-Available-Stock-based-on-Demand/m-p/2502933#M69231</guid>
      <dc:creator>H_insight</dc:creator>
      <dc:date>2022-05-09T19:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dax to count Available Stock based on Demand</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-count-Available-Stock-based-on-Demand/m-p/2502958#M69234</link>
      <description>&lt;P&gt;You are welcome. Have a nice week ahead..&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 19:38:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-count-Available-Stock-based-on-Demand/m-p/2502958#M69234</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-05-09T19:38:01Z</dc:date>
    </item>
  </channel>
</rss>

