<?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: Return first date with zero inventory in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-first-date-with-zero-inventory/m-p/1704836#M35140</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="281771" data-lia-user-login="rfigtree" class="lia-mention lia-mention-user"&gt;rfigtree&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks but that didn't really solve my problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;First distribution for 7 nights kiosk is on the 1.10.2020. on 14.10.2020 inventory should be 6, instead I get the first product activation. So the first date formula returns the dates for every activation, not when inventory is &amp;lt;= 0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggetions? I really need to solve this puzzle &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Christer&lt;/P&gt;</description>
    <pubDate>Fri, 05 Mar 2021 07:48:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-03-05T07:48:42Z</dc:date>
    <item>
      <title>Return first date with zero inventory</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-first-date-with-zero-inventory/m-p/1703015#M35067</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to find the first date our sales location have zero inventory of a product.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried every possible way to calculate this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So wanted result is this:&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;I nedd to get the date when inventory reaches 0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I create a measure or calculated column that gives me the running inventory for every date? Or is this achievable with a measure?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which formula do I use to get the date? I have tried&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;first date below 0 = &lt;/SPAN&gt;&lt;SPAN&gt;MINX(FILTER(Table, [Measure running inventory] &amp;lt;= 0),Table[Date])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But this returns the first date of activation&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Please help! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 04 Mar 2021 10:46:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-first-date-with-zero-inventory/m-p/1703015#M35067</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-04T10:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Return first date with zero inventory</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-first-date-with-zero-inventory/m-p/1703059#M35069</link>
      <description>&lt;P&gt;=calculate(min(table[date]),filter(all(table),table[runninginventory]&amp;lt;=0))&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 11:01:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-first-date-with-zero-inventory/m-p/1703059#M35069</guid>
      <dc:creator>rfigtree</dc:creator>
      <dc:date>2021-03-04T11:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Return first date with zero inventory</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-first-date-with-zero-inventory/m-p/1703509#M35081</link>
      <description>&lt;P&gt;Thanks, but I don't have the runninginventory as a column. I dont understand how to calculate it. If i solve that everything else should fall in place.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 14:37:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-first-date-with-zero-inventory/m-p/1703509#M35081</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-04T14:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Return first date with zero inventory</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-first-date-with-zero-inventory/m-p/1703975#M35100</link>
      <description>&lt;P&gt;running=calculate(sum([distributed]) - sum([activated]) - sum([returned]), filter(all(table), [date] &amp;lt;= earlier([date]))&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 19:13:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-first-date-with-zero-inventory/m-p/1703975#M35100</guid>
      <dc:creator>rfigtree</dc:creator>
      <dc:date>2021-03-04T19:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Return first date with zero inventory</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-first-date-with-zero-inventory/m-p/1704836#M35140</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="281771" data-lia-user-login="rfigtree" class="lia-mention lia-mention-user"&gt;rfigtree&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks but that didn't really solve my problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;First distribution for 7 nights kiosk is on the 1.10.2020. on 14.10.2020 inventory should be 6, instead I get the first product activation. So the first date formula returns the dates for every activation, not when inventory is &amp;lt;= 0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggetions? I really need to solve this puzzle &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Christer&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 07:48:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-first-date-with-zero-inventory/m-p/1704836#M35140</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-05T07:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Return first date with zero inventory</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-first-date-with-zero-inventory/m-p/1706534#M35204</link>
      <description>&lt;P&gt;hi i hve no idea what the terms distributed, activated and returned mean in relation to adding or subtracting from your stock.&lt;/P&gt;&lt;P&gt;I can only suggest checking this, i have assumed distributed adds to your stock and activated and returned reduce your stock. if that is wrong please amend the + and -'s accordingly.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;running=calculate(sum([distributed]) - sum([activated]) - sum([returned]), filter(all(table), [date] &amp;lt;= earlier([date]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;alternatly i could suggest your data is incomplete, your initial stock on hand is not being taken into consideration.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there is nothing wrong with the concept of my formula, i use it all the time at work.&lt;/P&gt;&lt;P&gt;i too analyse invetory and forecast inventory.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Mar 2021 05:26:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-first-date-with-zero-inventory/m-p/1706534#M35204</guid>
      <dc:creator>rfigtree</dc:creator>
      <dc:date>2021-03-06T05:26:49Z</dc:date>
    </item>
  </channel>
</rss>

