<?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: Find a value / LOOKUPVALUE in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-a-value-LOOKUPVALUE/m-p/1573528#M31377</link>
    <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;and thank you for looking into my case.&lt;BR /&gt;I want to calculate the time between the start of the action and the end of the action.&lt;BR /&gt;Here is the result that I hope (before proceeding with the subtraction).&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;Mathieu&lt;/P&gt;</description>
    <pubDate>Tue, 29 Dec 2020 14:40:44 GMT</pubDate>
    <dc:creator>MathieuF</dc:creator>
    <dc:date>2020-12-29T14:40:44Z</dc:date>
    <item>
      <title>Find a value / LOOKUPVALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-a-value-LOOKUPVALUE/m-p/1573441#M31374</link>
      <description>&lt;P&gt;Good morning all,&lt;BR /&gt;Not finding a solution to my problem, I try to work around the thing.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Calculation-between-2-dates-based-on-the-same-value/m-p/1543355#M30430" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Calculation-between-2-dates-based-on-the-same-value/m-p/1543355#M30430&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I want to display on the same line the start date (task.taken) and the end date (task.completed) of the same "task_id".&lt;BR /&gt;I illustrated this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I carried out tests with in particular the LOOKUPVALUE formula that you can find in .testrecherche and .testrecherche2.&lt;/P&gt;&lt;P&gt;the difficulty I encounter is that the value "task-id" or the one found in "task_id_debut / fin" can be repeated. I need to have the one that comes right after (chronological order of created_at).&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mathieu&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PBIX: &lt;A href="https://www.dropbox.com/sh/61ae2dtbmobl8tp/AAATpy0sRBMGRziU0Xe7Sy_Za?dl=0" target="_blank" rel="noopener"&gt;https://www.dropbox.com/sh/61ae2dtbmobl8tp/AAATpy0sRBMGRziU0Xe7Sy_Za?dl=0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 13:16:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-a-value-LOOKUPVALUE/m-p/1573441#M31374</guid>
      <dc:creator>MathieuF</dc:creator>
      <dc:date>2020-12-29T13:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Find a value / LOOKUPVALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-a-value-LOOKUPVALUE/m-p/1573518#M31375</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="275205" data-lia-user-login="MathieuF" class="lia-mention lia-mention-user"&gt;MathieuF&lt;/a&gt;&amp;nbsp;- So what is the expected output then?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 14:32:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-a-value-LOOKUPVALUE/m-p/1573518#M31375</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-12-29T14:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Find a value / LOOKUPVALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-a-value-LOOKUPVALUE/m-p/1573528#M31377</link>
      <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;and thank you for looking into my case.&lt;BR /&gt;I want to calculate the time between the start of the action and the end of the action.&lt;BR /&gt;Here is the result that I hope (before proceeding with the subtraction).&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;Mathieu&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 14:40:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-a-value-LOOKUPVALUE/m-p/1573528#M31377</guid>
      <dc:creator>MathieuF</dc:creator>
      <dc:date>2020-12-29T14:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Find a value / LOOKUPVALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-a-value-LOOKUPVALUE/m-p/1573533#M31379</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="275205" data-lia-user-login="MathieuF" class="lia-mention lia-mention-user"&gt;MathieuF&lt;/a&gt;&amp;nbsp;See my article on Mean Time Between Failure (MTBF) which uses EARLIER: &lt;A href="http://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/339586" target="_blank"&gt;http://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/339586&lt;/A&gt;.&lt;BR /&gt;The basic pattern is:&lt;BR /&gt;Column =&amp;nbsp;&lt;BR /&gt;&amp;nbsp; VAR __Current = [Value]&lt;BR /&gt;&amp;nbsp; VAR __PreviousDate = MAXX(FILTER('Table','Table'[Date] &amp;lt; EARLIER('Table'[Date])),[Date])&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; VAR __Previous = MAXX(FILTER('Table',[Date]=__PreviousDate),[Value])&lt;BR /&gt;RETURN&lt;BR /&gt;&amp;nbsp; __Current - __Previous&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may need to use MINX in your example.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 14:43:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-a-value-LOOKUPVALUE/m-p/1573533#M31379</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-12-29T14:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Find a value / LOOKUPVALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-a-value-LOOKUPVALUE/m-p/1573562#M31380</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&lt;/P&gt;&lt;P&gt;I had seen your article and wanted to adapt it without success.&lt;BR /&gt;I tested your formula, but it didn't give the same result (I removed the subtraction to test.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;.testRecherche3 =&lt;BR /&gt;VAR __Current = journal_forum[created_at]&lt;BR /&gt;VAR __PreviousDate = MINX(FILTER(journal_forum;journal_forum[created_at] &amp;lt; EARLIER(journal_forum[created_at]));journal_forum[created_at])&lt;/P&gt;&lt;P&gt;VAR __Previous = MINX(FILTER(journal_forum;journal_forum[created_at]=__PreviousDate);journal_forum[created_at])&lt;BR /&gt;RETURN&lt;BR /&gt;//__Current -&lt;BR /&gt;- __Previous&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this formula, but it only works for the first part. Not the second.&lt;BR /&gt;.testRecherche2 = IF(ISBLANK(journal_forum[Task_id_debut])=BLANK();CALCULATE(MIN(journal_forum[created_at]);FILTER(ALL(journal_forum);journal_forum[Task_id_fin]=EARLIER(journal_forum[Task_id_debut])));BLANK())&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;Mathieu&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 14:59:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-a-value-LOOKUPVALUE/m-p/1573562#M31380</guid>
      <dc:creator>MathieuF</dc:creator>
      <dc:date>2020-12-29T14:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Find a value / LOOKUPVALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-a-value-LOOKUPVALUE/m-p/1573584#M31381</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="275205" data-lia-user-login="MathieuF" class="lia-mention lia-mention-user"&gt;MathieuF&lt;/a&gt;&amp;nbsp;-&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I tried this formula, but it only works for the first part. Not the second.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.testRecherche2 = IF(ISBLANK(journal_forum[Task_id_debut])=BLANK();CALCULATE(MIN(journal_forum[created_at]);FILTER(ALL(journal_forum);journal_forum[Task_id_fin]=EARLIER(journal_forum[Task_id_debut])));BLANK())&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You would need to include an additional filter like:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IF(ISBLANK(journal_forum[Task_id_debut])=BLANK();CALCULATE(MIN(journal_forum[created_at]);FILTER(ALL(journal_forum);journal_forum[Task_id_fin]=EARLIER(journal_forum[Task_id_debut]) &amp;amp;&amp;amp; journal_forum[created_at]&amp;gt;EARLIER(journal_forum[created_at])));BLANK())&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 29 Dec 2020 15:16:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-a-value-LOOKUPVALUE/m-p/1573584#M31381</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-12-29T15:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Find a value / LOOKUPVALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-a-value-LOOKUPVALUE/m-p/1574615#M31421</link>
      <description>&lt;P&gt;Helolo &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much, thanks to you, I am reaching my goal.&lt;/P&gt;&lt;P&gt;There is one small problem.&lt;BR /&gt;Indeed, if I take the example of user_id 5be2f44514bf8a39cb988ff5 and task_id 5fcdf9e9bd0e542b263be8a8 (same with 5fcbc85e71336801d1debc25) we can see that there are interactions between (content.replied) which give empty fields. So I think EARLIER does not detect the next value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;How to cure it ?&lt;/P&gt;&lt;P&gt;My files: &lt;A href="https://www.dropbox.com/sh/61ae2dtbmobl8tp/AAATpy0sRBMGRziU0Xe7Sy_Za?dl=0" target="_blank" rel="noopener"&gt;https://www.dropbox.com/sh/61ae2dtbmobl8tp/AAATpy0sRBMGRziU0Xe7Sy_Za?dl=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Columns concerned:&lt;BR /&gt;task_id_debut&lt;BR /&gt;task_id_fin&lt;BR /&gt;.testrecherche2&lt;BR /&gt;.created_at_debut&lt;BR /&gt;.Measure1 / .testrecherche4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moreover, there are surely simpler, without using so many columns.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you for your precious help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mathieu&lt;/P&gt;</description>
      <pubDate>Thu, 31 Dec 2020 14:17:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-a-value-LOOKUPVALUE/m-p/1574615#M31421</guid>
      <dc:creator>MathieuF</dc:creator>
      <dc:date>2020-12-31T14:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Find a value / LOOKUPVALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-a-value-LOOKUPVALUE/m-p/1596387#M31994</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I'm sorry, my problem is still there.&lt;BR /&gt;How to make it take into account the next non empty line?&lt;BR /&gt;Should I use the ALLNOBLANK function? And how ?&lt;BR /&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 09:32:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-a-value-LOOKUPVALUE/m-p/1596387#M31994</guid>
      <dc:creator>MathieuF</dc:creator>
      <dc:date>2021-01-13T09:32:37Z</dc:date>
    </item>
  </channel>
</rss>

