<?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: Inventory Update each request attribuiting status in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-Update-each-request-attribuiting-status/m-p/3211931#M117170</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="553190" data-lia-user-login="Pedro_Gomes" class="lia-mention lia-mention-user"&gt;Pedro_Gomes&lt;/a&gt; , If you need a new column &lt;/P&gt;
&lt;P&gt;new column =&lt;/P&gt;
&lt;P&gt;var _sum = sumx(filter(Table, Table[item] = earlier([item]) &amp;amp;&amp;amp; [Date] &amp;lt;= earlier([date])&amp;nbsp; ), [Inventory]+0 - [quantity])&lt;/P&gt;
&lt;P&gt;return&lt;/P&gt;
&lt;P&gt;if(_sum&amp;lt;= 0 , "No Inventory", "OK Inventory")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;new column =&lt;/P&gt;
&lt;P&gt;var _sum = sumx(filter(Table, Table[item] = earlier([item]) &amp;amp;&amp;amp; [Date] &amp;lt;= earlier([date]) &amp;amp;&amp;amp;&amp;nbsp;Table[product] = earlier([product]) &amp;nbsp; ), [Inventory]+0 - [quantity])&lt;/P&gt;
&lt;P&gt;return&lt;/P&gt;
&lt;P&gt;if(_sum&amp;lt;= 0 , "No Inventory", "OK Inventory")&lt;/P&gt;</description>
    <pubDate>Fri, 28 Apr 2023 21:15:47 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2023-04-28T21:15:47Z</dc:date>
    <item>
      <title>Inventory Update each request attribuiting status</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-Update-each-request-attribuiting-status/m-p/3211746#M117150</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;On Power BI I have a Inventory that have a lot of requests of the same Item and the same Date. For this reason I need to make an status telling me if that inventory will be anough or not for those requests&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;For Now I just have the first Part:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 18:21:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-Update-each-request-attribuiting-status/m-p/3211746#M117150</guid>
      <dc:creator>Pedro_Gomes</dc:creator>
      <dc:date>2023-04-28T18:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Inventory Update each request attribuiting status</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-Update-each-request-attribuiting-status/m-p/3211931#M117170</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="553190" data-lia-user-login="Pedro_Gomes" class="lia-mention lia-mention-user"&gt;Pedro_Gomes&lt;/a&gt; , If you need a new column &lt;/P&gt;
&lt;P&gt;new column =&lt;/P&gt;
&lt;P&gt;var _sum = sumx(filter(Table, Table[item] = earlier([item]) &amp;amp;&amp;amp; [Date] &amp;lt;= earlier([date])&amp;nbsp; ), [Inventory]+0 - [quantity])&lt;/P&gt;
&lt;P&gt;return&lt;/P&gt;
&lt;P&gt;if(_sum&amp;lt;= 0 , "No Inventory", "OK Inventory")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;new column =&lt;/P&gt;
&lt;P&gt;var _sum = sumx(filter(Table, Table[item] = earlier([item]) &amp;amp;&amp;amp; [Date] &amp;lt;= earlier([date]) &amp;amp;&amp;amp;&amp;nbsp;Table[product] = earlier([product]) &amp;nbsp; ), [Inventory]+0 - [quantity])&lt;/P&gt;
&lt;P&gt;return&lt;/P&gt;
&lt;P&gt;if(_sum&amp;lt;= 0 , "No Inventory", "OK Inventory")&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 21:15:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-Update-each-request-attribuiting-status/m-p/3211931#M117170</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2023-04-28T21:15:47Z</dc:date>
    </item>
  </channel>
</rss>

