<?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: Need Inventory SUM for the last day with data of each Month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Inventory-SUM-for-the-last-day-with-data-of-each-Month/m-p/3458399#M131852</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="572444" data-lia-user-login="Igotzepowerbi" class="lia-mention lia-mention-user"&gt;Igotzepowerbi&lt;/a&gt;&amp;nbsp;You could create a complex selector like the following:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Selector Measure = 
  VAR __Year = MAX('Table'[Year])
  VAR __Month = MAX('Table'[Month])
  VAR __Date = MAX('Table'[Date])
  VAR __MaxDate = MAXX( DISTINCT( SELECTCOLUMNS( FILTER(ALLSELECTED('Table'), [Year] = __Year &amp;amp;&amp;amp; [Month] = __Month), "Date", [Date]) ), [Date])
  VAR __Result = IF(__Date = __MaxDate, 1, 0)
RETURN
  __Result&lt;/LI-CODE&gt;
&lt;P&gt;You could also create a measure with similar logic that only returns a value if it is the max date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Oct 2023 22:17:36 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2023-10-03T22:17:36Z</dc:date>
    <item>
      <title>Need Inventory SUM for the last day with data of each Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Inventory-SUM-for-the-last-day-with-data-of-each-Month/m-p/3458388#M131851</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I am needing a measure that grabs the last day of the month where there is data and just give me the inventory units for that day.&lt;BR /&gt;So I was able to do this with a matrix but I only want the rows highlighted.&lt;BR /&gt;Could someone help me?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 22:07:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Inventory-SUM-for-the-last-day-with-data-of-each-Month/m-p/3458388#M131851</guid>
      <dc:creator>Igotzepowerbi</dc:creator>
      <dc:date>2023-10-03T22:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need Inventory SUM for the last day with data of each Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Inventory-SUM-for-the-last-day-with-data-of-each-Month/m-p/3458399#M131852</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="572444" data-lia-user-login="Igotzepowerbi" class="lia-mention lia-mention-user"&gt;Igotzepowerbi&lt;/a&gt;&amp;nbsp;You could create a complex selector like the following:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Selector Measure = 
  VAR __Year = MAX('Table'[Year])
  VAR __Month = MAX('Table'[Month])
  VAR __Date = MAX('Table'[Date])
  VAR __MaxDate = MAXX( DISTINCT( SELECTCOLUMNS( FILTER(ALLSELECTED('Table'), [Year] = __Year &amp;amp;&amp;amp; [Month] = __Month), "Date", [Date]) ), [Date])
  VAR __Result = IF(__Date = __MaxDate, 1, 0)
RETURN
  __Result&lt;/LI-CODE&gt;
&lt;P&gt;You could also create a measure with similar logic that only returns a value if it is the max date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 22:17:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Inventory-SUM-for-the-last-day-with-data-of-each-Month/m-p/3458399#M131852</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-10-03T22:17:36Z</dc:date>
    </item>
  </channel>
</rss>

