<?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: Latest value per day per group in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-value-per-day-per-group/m-p/1634020#M33151</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks! As a table your solution seems to be working fine but when adding a measure to get the information for the latest day I now only get the same value for each name. The same measure use to work with the original table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The measure I'm using is:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Last day = CALCULATE(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUM('Table'[value]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER(('Table'), 'Table'[date] = Max('Table'[date])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Julia&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 31 Jan 2021 15:55:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-01-31T15:55:43Z</dc:date>
    <item>
      <title>Latest value per day per group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-value-per-day-per-group/m-p/1633950#M33147</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table that shows data uploads per table (name) per day. Usually there is only one upload per table per day but in some cases table needs to be updated multiple times in one day. I would like to monitor the rowcount per table per day but these exceptions make it really hard. So, is there a way to filter the latest value per day per group (name)? You can find the pbix &lt;A href="https://drive.google.com/file/d/1VIWjztF61R834Vm5IfHo-BlK7crZ89EE/view?usp=sharing" target="_self"&gt;here&lt;/A&gt;.&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;Thank you in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Julia&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jan 2021 14:51:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-value-per-day-per-group/m-p/1633950#M33147</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-31T14:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Latest value per day per group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-value-per-day-per-group/m-p/1633975#M33149</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a new calculated table:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table 2 = 
FILTER (
    'Table',
    VAR day_ =
        DATEVALUE ( 'Table'[date] )
    VAR latest_ =
        CALCULATE (
            MAX ( 'Table'[date] ),
            DATEVALUE ( 'Table'[date] ) = day_,
            ALLEXCEPT ( 'Table', 'Table'[name] )
        )
    RETURN
        latest_ = 'Table'[date]
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;This could also be done in Power Query&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="height: 100px; width: 100%; border-collapse: collapse; border-style: groove; border-color: #0c1c49; background-color: #00675f;" border="0" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15px;"&gt;
&lt;TD width="15.961305925030231%" style="width: 92px; height: 15px;"&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="84.03869407496977%" style="width: 485px; height: 15px; text-align: left;"&gt;&lt;FONT color="#FFFFFF"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Please accept the solution when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="#FFFFFF"&gt;&lt;SPAN style="color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;/FONT&gt;&lt;BR /&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4.5" color="#FF99CC"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jan 2021 15:07:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-value-per-day-per-group/m-p/1633975#M33149</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2021-01-31T15:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Latest value per day per group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-value-per-day-per-group/m-p/1634020#M33151</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks! As a table your solution seems to be working fine but when adding a measure to get the information for the latest day I now only get the same value for each name. The same measure use to work with the original table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The measure I'm using is:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Last day = CALCULATE(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUM('Table'[value]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER(('Table'), 'Table'[date] = Max('Table'[date])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Julia&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jan 2021 15:55:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-value-per-day-per-group/m-p/1634020#M33151</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-31T15:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Latest value per day per group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-value-per-day-per-group/m-p/1634130#M33152</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need&amp;nbsp; to update the measure correctly. From the results it looks like you are using 'Table' instead of 'Table 2'.&lt;/P&gt;
&lt;P&gt;Try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Last day2 =
CALCULATE (
    SUM ( 'Table 2'[value] ),
    FILTER ( ( 'Table 2' ), 'Table 2'[date] = MAX ( 'Table 2'[date] ) )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="height: 100px; width: 100%; border-collapse: collapse; border-style: groove; border-color: #0c1c49; background-color: #00675f;" border="0" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15px;"&gt;
&lt;TD width="15.961305925030231%" style="width: 92px; height: 15px;"&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="84.03869407496977%" style="width: 485px; height: 15px; text-align: left;"&gt;&lt;FONT color="#FFFFFF"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Please accept the solution when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="#FFFFFF"&gt;&lt;SPAN style="color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;/FONT&gt;&lt;BR /&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4.5" color="#FF99CC"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jan 2021 17:51:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-value-per-day-per-group/m-p/1634130#M33152</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2021-01-31T17:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Latest value per day per group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-value-per-day-per-group/m-p/1634711#M33168</link>
      <description>&lt;P&gt;Oh what an embarrasing mistake. More coffee for me &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; Thank you so much&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92178" data-lia-user-login="AlB" class="lia-mention lia-mention-user"&gt;AlB&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 04:46:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-value-per-day-per-group/m-p/1634711#M33168</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-01T04:46:59Z</dc:date>
    </item>
  </channel>
</rss>

