<?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 Problem with getting the previus value when using time in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-getting-the-previus-value-when-using-time/m-p/3900232#M151985</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have a strange problem that i think this community can help me with.&lt;BR /&gt;I using this DAX&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TEst =&lt;/SPAN&gt; &lt;SPAN&gt;LOOKUPVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Tabell&lt;/SPAN&gt;&lt;SPAN&gt;[Value]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Tabell&lt;/SPAN&gt;&lt;SPAN&gt;[Tid]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Tabell&lt;/SPAN&gt;&lt;SPAN&gt;[Tid]&lt;/SPAN&gt;&lt;SPAN&gt;- (&lt;/SPAN&gt;&lt;SPAN&gt;TIME&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;To test if i can get the prevuis value&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;P&gt;&lt;BR /&gt;Why do i get some values and others not?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 07 May 2024 21:46:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-05-07T21:46:56Z</dc:date>
    <item>
      <title>Problem with getting the previus value when using time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-getting-the-previus-value-when-using-time/m-p/3900232#M151985</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have a strange problem that i think this community can help me with.&lt;BR /&gt;I using this DAX&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TEst =&lt;/SPAN&gt; &lt;SPAN&gt;LOOKUPVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Tabell&lt;/SPAN&gt;&lt;SPAN&gt;[Value]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Tabell&lt;/SPAN&gt;&lt;SPAN&gt;[Tid]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Tabell&lt;/SPAN&gt;&lt;SPAN&gt;[Tid]&lt;/SPAN&gt;&lt;SPAN&gt;- (&lt;/SPAN&gt;&lt;SPAN&gt;TIME&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;To test if i can get the prevuis value&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;P&gt;&lt;BR /&gt;Why do i get some values and others not?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 May 2024 21:46:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-getting-the-previus-value-when-using-time/m-p/3900232#M151985</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-07T21:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with getting the previus value when using time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-getting-the-previus-value-when-using-time/m-p/3900482#M151991</link>
      <description>&lt;P&gt;Some of your timestamps contain fractions of seconds.&amp;nbsp; Force the Tid column to drop these fractions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also please don't use LOOKUPVALUE for that.&amp;nbsp; Use a proper function like OFFSET.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 01:15:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-getting-the-previus-value-when-using-time/m-p/3900482#M151991</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-05-08T01:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with getting the previus value when using time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-getting-the-previus-value-when-using-time/m-p/3901370#M152031</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;It would be great if you could show an example when using OFFSET.&lt;BR /&gt;In documents it looks like the OFFSET works best in a MEASURE. Is that correct?&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 07:41:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-getting-the-previus-value-when-using-time/m-p/3901370#M152031</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-08T07:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with getting the previus value when using time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-getting-the-previus-value-when-using-time/m-p/3901913#M152048</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information or anything not related to the issue or question. &lt;BR /&gt;&lt;BR /&gt;If you are unsure how to upload data please refer to &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 11:06:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-getting-the-previus-value-when-using-time/m-p/3901913#M152048</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-05-08T11:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with getting the previus value when using time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-getting-the-previus-value-when-using-time/m-p/3913479#M152366</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;,thanks for the quick reply, I'll add further.&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The Table data is shown below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Use the following DAX expression to create a measure&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = CALCULATE(MAX('Table'[Value]),OFFSET(-1,ALLSELECTED('Table'[Value]),ORDERBY('Table'[Value],ASC)))&lt;/LI-CODE&gt;
&lt;P&gt;Final output&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 09:24:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-getting-the-previus-value-when-using-time/m-p/3913479#M152366</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-13T09:24:38Z</dc:date>
    </item>
  </channel>
</rss>

