<?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: Get Value on Latest date only in date range selected via slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-Value-on-Latest-date-only-in-date-range-selected-via-slicer/m-p/1939221#M42190</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="311392" data-lia-user-login="AHoang" class="lia-mention lia-mention-user"&gt;AHoang&lt;/a&gt; , if this coming from a date calendar then you can these two var to get first and last date &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;measure 2 = &lt;BR /&gt;VAR _min = MINX( allselected('Calendar') , 'Calendar'[Date] ) &lt;BR /&gt;VAR _max = MAXX(allselected('Calendar') , 'Calendar'[Date] )&lt;BR /&gt;RETURN&lt;/P&gt;
&lt;P&gt;&amp;lt;use in calculation &amp;gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jul 2021 06:26:01 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-07-06T06:26:01Z</dc:date>
    <item>
      <title>Get Value on Latest date only in date range selected via slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-Value-on-Latest-date-only-in-date-range-selected-via-slicer/m-p/1938814#M42185</link>
      <description>&lt;P&gt;I am trying to use a slicer to return the start and end value of a portfolio. I have created measures to pick up the start date and end date selected.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;However, I can't pick up only the portfolio value at the end date only.&lt;/P&gt;&lt;P&gt;My first try was&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;ENDPV = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE(SUM(Table1[PV]),FILTER(Table1,Table1[Date] == [EndDate]))&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;However, this didn't seem to work. EndDate gave me the right date when i displayed it on the page, but when I used it in a formula, it's just taken both dates selected (StartDate and EndDate) and added them together.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Do you know how to fix this so that I can isolate the Starting Value and Ending Value? I need to report each separately so I can show how the portfolio value has changed over the selected time period&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&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>Tue, 06 Jul 2021 00:14:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-Value-on-Latest-date-only-in-date-range-selected-via-slicer/m-p/1938814#M42185</guid>
      <dc:creator>AHoang</dc:creator>
      <dc:date>2021-07-06T00:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get Value on Latest date only in date range selected via slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-Value-on-Latest-date-only-in-date-range-selected-via-slicer/m-p/1939221#M42190</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="311392" data-lia-user-login="AHoang" class="lia-mention lia-mention-user"&gt;AHoang&lt;/a&gt; , if this coming from a date calendar then you can these two var to get first and last date &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;measure 2 = &lt;BR /&gt;VAR _min = MINX( allselected('Calendar') , 'Calendar'[Date] ) &lt;BR /&gt;VAR _max = MAXX(allselected('Calendar') , 'Calendar'[Date] )&lt;BR /&gt;RETURN&lt;/P&gt;
&lt;P&gt;&amp;lt;use in calculation &amp;gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 06:26:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-Value-on-Latest-date-only-in-date-range-selected-via-slicer/m-p/1939221#M42190</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-07-06T06:26:01Z</dc:date>
    </item>
  </channel>
</rss>

