<?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 to find a latest value for Unit across Dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-find-a-latest-value-for-Unit-across-Dates/m-p/2106161#M48118</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Please, provide sample data as text, use the table tool in the editing bar.&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#333399"&gt;&lt;EM&gt;If this post helps, then please consider &lt;U&gt;Accept it as the solution&lt;/U&gt; &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;to help the other members find it more quickly.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Sep 2021 16:02:52 GMT</pubDate>
    <dc:creator>ERD</dc:creator>
    <dc:date>2021-09-29T16:02:52Z</dc:date>
    <item>
      <title>Need to find a latest value for Unit across Dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-find-a-latest-value-for-Unit-across-Dates/m-p/2106123#M48115</link>
      <description>&lt;P&gt;Hi guys, I have data similar to below table where I need to create a measure to get the latest Unit Size for a given Unit Number (Unit 1, Unit2, Unit3) across the dates and output should be according to the results as highlighted below. Please can someone help me with the DAX command.&lt;BR /&gt;&lt;BR /&gt;Sample Data:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 01-01-20&amp;nbsp; &amp;nbsp; &amp;nbsp; 02-01-20&amp;nbsp; &amp;nbsp; &amp;nbsp;03-01-20&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unit Size&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Unit Size&amp;nbsp; &amp;nbsp; &amp;nbsp; Unit Size&lt;BR /&gt;Unit 1&amp;nbsp; &amp;nbsp; &amp;nbsp;25&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15&lt;BR /&gt;Unit 2&amp;nbsp; &amp;nbsp; &amp;nbsp;50&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 40&lt;BR /&gt;Unit 3&amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;BR /&gt;&lt;BR /&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 17:28:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-find-a-latest-value-for-Unit-across-Dates/m-p/2106123#M48115</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-29T17:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need to find a latest value for Unit across Dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-find-a-latest-value-for-Unit-across-Dates/m-p/2106161#M48118</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Please, provide sample data as text, use the table tool in the editing bar.&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#333399"&gt;&lt;EM&gt;If this post helps, then please consider &lt;U&gt;Accept it as the solution&lt;/U&gt; &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;to help the other members find it more quickly.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 16:02:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-find-a-latest-value-for-Unit-across-Dates/m-p/2106161#M48118</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2021-09-29T16:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need to find a latest value for Unit across Dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-find-a-latest-value-for-Unit-across-Dates/m-p/2106300#M48124</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I'd suggest you to first prepare your data in Power Query:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WOrRASUcpNC+zRCE4syqVAC9WJxrCNwRKGJnCCIS4EZBnagAkzAxQxI2BPEOQENhIpdhYAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"(blank)" = _t, #"01-01-20" = _t, #"02-01-20 " = _t, #"03-01-20" = _t]),
    #"Unpivoted Columns" = Table.UnpivotOtherColumns(Source, {"(blank)"}, "Attribute", "Value"),
    #"Filtered Rows" = Table.SelectRows(#"Unpivoted Columns", each ([#"(blank)"] &amp;lt;&amp;gt; " ")),
    #"Changed Type" = Table.TransformColumnTypes(#"Filtered Rows",{{"Value", type number}}),
    #"Changed Type with Locale" = Table.TransformColumnTypes(#"Changed Type", {{"Attribute", type date}}, "en-CH")
in
    #"Changed Type with Locale"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you can try this measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;latestValue = 
VAR latestDate = MAXX ( FILTER ( 'Table', 'Table'[Value] &amp;lt;&amp;gt; BLANK () ), 'Table'[Date] )
RETURN
    CALCULATE ( MAX ( 'Table'[Value] ), 'Table'[Date] = latestDate )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#333399"&gt;&lt;EM&gt;If this post helps, then please consider &lt;U&gt;Accept it as the solution&lt;/U&gt; &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;to help the other members find it more quickly.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 17:10:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-find-a-latest-value-for-Unit-across-Dates/m-p/2106300#M48124</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2021-09-29T17:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need to find a latest value for Unit across Dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-find-a-latest-value-for-Unit-across-Dates/m-p/2106330#M48125</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291363" data-lia-user-login="ERD" class="lia-mention lia-mention-user"&gt;ERD&lt;/a&gt;&amp;nbsp;.&lt;BR /&gt;&lt;BR /&gt;The following DAX will return the MAX of the Unit Size right? Ex- For Unit 2 and date -&amp;nbsp;&lt;SPAN&gt;02-01-20, its giving 60.&lt;BR /&gt;What I need is the Latest value, if for same Unit 2, the Unit Size is 40 on date - 02-01-20 then Latest Unit Size in Unit 2 should return 40.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 17:26:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-find-a-latest-value-for-Unit-across-Dates/m-p/2106330#M48125</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-29T17:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Need to find a latest value for Unit across Dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-find-a-latest-value-for-Unit-across-Dates/m-p/2106344#M48126</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291363" data-lia-user-login="ERD" class="lia-mention lia-mention-user"&gt;ERD&lt;/a&gt;&amp;nbsp;, I have updated the post and sample data to be clear on the requirements.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 17:30:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-find-a-latest-value-for-Unit-across-Dates/m-p/2106344#M48126</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-29T17:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need to find a latest value for Unit across Dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-find-a-latest-value-for-Unit-across-Dates/m-p/2107277#M48158</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;the code will return the latest value, not the biggest one:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#333399"&gt;&lt;EM&gt;If this post helps, then please consider &lt;U&gt;Accept it as the solution&lt;/U&gt; &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;to help the other members find it more quickly.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 05:48:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-find-a-latest-value-for-Unit-across-Dates/m-p/2107277#M48158</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2021-09-30T05:48:27Z</dc:date>
    </item>
  </channel>
</rss>

