<?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: Complex Stock Allocation Logic in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Complex-Stock-Allocation-Logic/m-p/1519531#M29607</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="272802" data-lia-user-login="sh-smita" class="lia-mention lia-mention-user"&gt;sh-smita&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please attach your pbix file or copy and paste the different tables from Excel. That gives us the ability to play with the DAX and provide you a solution.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If you would share your pbix, or dummy up some values in Excel both for current and expected data. Please copy and paste them into your post, rather than doing a picture, we may be able to help you.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please read this post to get your question answered more quickly:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Nathaniel&lt;/P&gt;</description>
    <pubDate>Fri, 27 Nov 2020 00:52:49 GMT</pubDate>
    <dc:creator>Nathaniel_C</dc:creator>
    <dc:date>2020-11-27T00:52:49Z</dc:date>
    <item>
      <title>Complex Stock Allocation Logic</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Complex-Stock-Allocation-Logic/m-p/1517340#M29555</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to allocate stock to sales orders using DAX, PowerBI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the allocation logic is not straight forward. This is how the logic must work -&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;1. Check if Main warehouse has stock, if stock available then move to the next sales order with Open Qty and repeat.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. When stock in the main warehouse is exhausted/insufficient to fulfil &lt;STRONG&gt;Qty Open&lt;/STRONG&gt;, check if stock is availabe in the other waehouse, if stock is allocated from other warehouse then the corresponding ETA confirmed date should be displayed for the sales order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. When stock in the main warehouse is exhausted/insufficient to fulfil &lt;STRONG&gt;Qty Open&lt;/STRONG&gt;, chcek the stock order on POs and display the corresponding ETA unconfirmed date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached a snapshot for reference.&lt;/P&gt;&lt;P&gt;I have been at it for a few days and I am unable to crack the logic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would be grateful for any suggestions on how to implement this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Smita&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 21:58:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Complex-Stock-Allocation-Logic/m-p/1517340#M29555</guid>
      <dc:creator>sh-smita</dc:creator>
      <dc:date>2020-11-25T21:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Stock Allocation Logic</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Complex-Stock-Allocation-Logic/m-p/1519531#M29607</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="272802" data-lia-user-login="sh-smita" class="lia-mention lia-mention-user"&gt;sh-smita&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please attach your pbix file or copy and paste the different tables from Excel. That gives us the ability to play with the DAX and provide you a solution.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If you would share your pbix, or dummy up some values in Excel both for current and expected data. Please copy and paste them into your post, rather than doing a picture, we may be able to help you.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please read this post to get your question answered more quickly:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Nathaniel&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 00:52:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Complex-Stock-Allocation-Logic/m-p/1519531#M29607</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2020-11-27T00:52:49Z</dc:date>
    </item>
  </channel>
</rss>

