<?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: Retrieving LASTDATE when another column = 0 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieving-LASTDATE-when-another-column-0/m-p/1315014#M23068</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="190980" data-lia-user-login="AlexAlberga727" class="lia-mention lia-mention-user"&gt;AlexAlberga727&lt;/a&gt;&amp;nbsp;- Perhaps:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = MAXX(FILTER('Table',[Avail Qty] &amp;gt; 0),[Date])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If a column. If a measure, create a table variable that represents the data in your visual (summarized by date for instance, use ADDCOLUMNS to add your measure, do your MAXX over that table variable.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Aug 2020 14:30:49 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2020-08-21T14:30:49Z</dc:date>
    <item>
      <title>Retrieving LASTDATE when another column = 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieving-LASTDATE-when-another-column-0/m-p/1314999#M23066</link>
      <description>&lt;P&gt;Folks -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im looking for a solution to something I would imagine to be very simple. Please help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the below screenshot you will see a visual which illustrates when specific product's inventory levels go to 0. Once 0, another column starts to calculate "Days not Allocated". I would like to retrieve the LASTDATE that SKU had a Days Not Allocated of 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the selected SKU that date would be 5/27/2020.&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;If anymore information is need please let me know.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 14:26:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieving-LASTDATE-when-another-column-0/m-p/1314999#M23066</guid>
      <dc:creator>AlexAlberga727</dc:creator>
      <dc:date>2020-08-21T14:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving LASTDATE when another column = 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieving-LASTDATE-when-another-column-0/m-p/1315014#M23068</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="190980" data-lia-user-login="AlexAlberga727" class="lia-mention lia-mention-user"&gt;AlexAlberga727&lt;/a&gt;&amp;nbsp;- Perhaps:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = MAXX(FILTER('Table',[Avail Qty] &amp;gt; 0),[Date])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If a column. If a measure, create a table variable that represents the data in your visual (summarized by date for instance, use ADDCOLUMNS to add your measure, do your MAXX over that table variable.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 14:30:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieving-LASTDATE-when-another-column-0/m-p/1315014#M23068</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-08-21T14:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving LASTDATE when another column = 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieving-LASTDATE-when-another-column-0/m-p/1315391#M23083</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="190980" data-lia-user-login="AlexAlberga727" class="lia-mention lia-mention-user"&gt;AlexAlberga727&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try the following:&lt;/P&gt;&lt;P&gt;measure = CALCULATE(LASTDATE(Table[Date]), [DaysNotAllocated] = 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If my answer resolves your issue, please give Kudos and mark as solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 16:52:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieving-LASTDATE-when-another-column-0/m-p/1315391#M23083</guid>
      <dc:creator>saraMissBI</dc:creator>
      <dc:date>2020-08-21T16:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving LASTDATE when another column = 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieving-LASTDATE-when-another-column-0/m-p/1315822#M23106</link>
      <description>There doesn't seem to be enough information in your post in order to give you a good answer.</description>
      <pubDate>Fri, 21 Aug 2020 21:25:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieving-LASTDATE-when-another-column-0/m-p/1315822#M23106</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-21T21:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving LASTDATE when another column = 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieving-LASTDATE-when-another-column-0/m-p/1319875#M23202</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for chiming in and providing me a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 15:29:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieving-LASTDATE-when-another-column-0/m-p/1319875#M23202</guid>
      <dc:creator>AlexAlberga727</dc:creator>
      <dc:date>2020-08-24T15:29:38Z</dc:date>
    </item>
  </channel>
</rss>

