<?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: Earliest values based on timeline in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Earliest-values-based-on-timeline/m-p/1603420#M32161</link>
    <description>&lt;P&gt;Many thanks AIB for your reply,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even though the measure above does succesfully provide the first date of the slicer, i would be actually looking for it to return the [&lt;EM&gt;fx&lt;/EM&gt; Average Value] on the first date of the slicer.&lt;/P&gt;&lt;P&gt;Let me provide some more context: i want to collapse all lines to zero on the first date of the slicer. i don't want these lines to eternally increase in the years to come. in a way, i want to benchmark these lines based on the desired start date. that is why the value on the earliest date is important so that i'll subtract it from my [&lt;EM&gt;fn&amp;nbsp;&lt;/EM&gt;Average Value]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;</description>
    <pubDate>Sat, 16 Jan 2021 19:59:13 GMT</pubDate>
    <dc:creator>kalspiros</dc:creator>
    <dc:date>2021-01-16T19:59:13Z</dc:date>
    <item>
      <title>Earliest values based on timeline</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Earliest-values-based-on-timeline/m-p/1602830#M32146</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i think that can be solved with a CALCULATETABLE that will filter the sliced data and then return the EARLIEST but not too savvy with such sets, plus, from my research on this forum, i didn't manage to make EARLIEST work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be looking for a measure that will be always returning the earliest [&lt;EM&gt;fx&lt;/EM&gt; Average Value] of (Data[Point]) based on the (Data[Date]) that will be dynamically slicing the data.&lt;/P&gt;&lt;P&gt;Something like the images below (red boxes indicate the needed values)&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;&lt;P&gt;Many thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 23:14:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Earliest-values-based-on-timeline/m-p/1602830#M32146</guid>
      <dc:creator>kalspiros</dc:creator>
      <dc:date>2021-01-15T23:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Earliest values based on timeline</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Earliest-values-based-on-timeline/m-p/1603314#M32157</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="241995" data-lia-user-login="kalspiros" class="lia-mention lia-mention-user"&gt;kalspiros&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EARLIEST does not have anything to do with this but rather with nested row contexts. Check it out:&amp;nbsp; &lt;A href="https://dax.guide/earliest/" target="_blank"&gt;https://dax.guide/earliest/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CALCULATE ( MIN ( DateTable[Date] ), ALLSELECTED ( DateTable[Date] ) )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&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;</description>
      <pubDate>Sat, 16 Jan 2021 16:17:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Earliest-values-based-on-timeline/m-p/1603314#M32157</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2021-01-16T16:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Earliest values based on timeline</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Earliest-values-based-on-timeline/m-p/1603420#M32161</link>
      <description>&lt;P&gt;Many thanks AIB for your reply,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even though the measure above does succesfully provide the first date of the slicer, i would be actually looking for it to return the [&lt;EM&gt;fx&lt;/EM&gt; Average Value] on the first date of the slicer.&lt;/P&gt;&lt;P&gt;Let me provide some more context: i want to collapse all lines to zero on the first date of the slicer. i don't want these lines to eternally increase in the years to come. in a way, i want to benchmark these lines based on the desired start date. that is why the value on the earliest date is important so that i'll subtract it from my [&lt;EM&gt;fn&amp;nbsp;&lt;/EM&gt;Average Value]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2021 19:59:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Earliest-values-based-on-timeline/m-p/1603420#M32161</guid>
      <dc:creator>kalspiros</dc:creator>
      <dc:date>2021-01-16T19:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Earliest values based on timeline</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Earliest-values-based-on-timeline/m-p/1603466#M32162</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="241995" data-lia-user-login="kalspiros" class="lia-mention lia-mention-user"&gt;kalspiros&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd misread. Then use that earliers date to apply it to your measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New measure =
VAR date_ =
    CALCULATE ( MIN ( DateTable[Date] ), ALLSELECTED ( DateTable[Date] ) )
RETURN
    CALCULATE ( [fx Average Value], DateTable[Date] = date_ )&lt;/LI-CODE&gt;
&lt;P&gt;If this doesn't work share the pbix&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2021 22:42:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Earliest-values-based-on-timeline/m-p/1603466#M32162</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2021-01-16T22:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Earliest values based on timeline</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Earliest-values-based-on-timeline/m-p/1603777#M32173</link>
      <description>&lt;P&gt;Hey AIB,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After several issues and tiny amendments on other slicers and filters, that now does the trick!&lt;/P&gt;&lt;P&gt;Glad that VAR is working in Excel as well (wasn't on BI environment) as i did try it in the past to no avail.&lt;/P&gt;&lt;P&gt;All in all, many thanks for your help on this and for opening the VAR unlimeted possibilites for me!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2021 11:17:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Earliest-values-based-on-timeline/m-p/1603777#M32173</guid>
      <dc:creator>kalspiros</dc:creator>
      <dc:date>2021-01-17T11:17:58Z</dc:date>
    </item>
  </channel>
</rss>

