<?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: How to get the latest exam result based on date  (page filter applied for person) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-latest-exam-result-based-on-date-page-filter/m-p/2446139#M65645</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So did you try the last code? Did you receive an error?&lt;/P&gt;</description>
    <pubDate>Fri, 08 Apr 2022 13:36:17 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-04-08T13:36:17Z</dc:date>
    <item>
      <title>How to get the latest exam result based on date  (page filter applied for person)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-latest-exam-result-based-on-date-page-filter/m-p/2445594#M65612</link>
      <description>&lt;P&gt;I have 2 tables as shown below ( tables have 1-* relation based on names)&lt;/P&gt;&lt;P&gt;Students:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Id&lt;/TD&gt;&lt;TD&gt;Name&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Joseph Hernandez&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Humberto Jones&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Todd Thornton&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;Chang Bernard&lt;/TD&gt;&lt;/TR&gt;&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t;&lt;TD&gt;64&lt;/TD&gt;&lt;TD&gt;Mar-22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;TD&gt;Myrna Joyce&lt;/TD&gt;&lt;TD&gt;69&lt;/TD&gt;&lt;TD&gt;Mar-22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;23&lt;/TD&gt;&lt;TD&gt;Velma Cox&lt;/TD&gt;&lt;TD&gt;56&lt;/TD&gt;&lt;TD&gt;Mar-22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;24&lt;/TD&gt;&lt;TD&gt;Fran Horne&lt;/TD&gt;&lt;TD&gt;49&lt;/TD&gt;&lt;TD&gt;Mar-22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;Ila Becker&lt;/TD&gt;&lt;TD&gt;57&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Mar-22&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the PowerBI desktop I create a report and there is a page filter based on "students name" (one student selected).&lt;/P&gt;&lt;P&gt;In this page I would like to put a "card" element which shows the latest exam result of the student.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will appreciate if you can guide me how to create new column / measure to show the latest exam result (eg: Joseph got 47 on Feb22 and not attended any exam on Mar-22, so result shall represent 47)&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 09:42:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-latest-exam-result-based-on-date-page-filter/m-p/2445594#M65612</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-08T09:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the latest exam result based on date  (page filter applied for person)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-latest-exam-result-based-on-date-page-filter/m-p/2445656#M65615</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may try&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Last Exam Result =
IF (
    HASONEVALUE ( Results[name] ),
    CALCULATE (
        VALUES ( Results[exam] ),
        ALLEXCEPT ( Results, Results[name] ),
        Results[date] = MAX ( Results[date] )
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 08 Apr 2022 10:04:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-latest-exam-result-based-on-date-page-filter/m-p/2445656#M65615</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-08T10:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the latest exam result based on date  (page filter applied for person)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-latest-exam-result-based-on-date-page-filter/m-p/2445941#M65627</link>
      <description>&lt;P&gt;Hi;&lt;BR /&gt;&lt;BR /&gt;I have tried your suggestion unfortunately it didn't work for me.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Last Exam Result = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;HASONEVALUE&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;exams[name]&lt;/SPAN&gt;&lt;SPAN&gt; ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;exams[exam]&lt;/SPAN&gt;&lt;SPAN&gt; ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALLEXCEPT&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;exams&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;exams[name]&lt;/SPAN&gt;&lt;SPAN&gt; ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;exams[date]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;exams[date]&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;img /&gt;&lt;P&gt;Do you have any idea what might be the problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 08 Apr 2022 12:08:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-latest-exam-result-based-on-date-page-filter/m-p/2445941#M65627</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-08T12:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the latest exam result based on date  (page filter applied for person)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-latest-exam-result-based-on-date-page-filter/m-p/2445973#M65628</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For "name" in the filter pane, would you please select "is not blank" and click apply. What results do you get?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 12:24:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-latest-exam-result-based-on-date-page-filter/m-p/2445973#M65628</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-08T12:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the latest exam result based on date  (page filter applied for person)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-latest-exam-result-based-on-date-page-filter/m-p/2446005#M65631</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here it is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 12:34:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-latest-exam-result-based-on-date-page-filter/m-p/2446005#M65631</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-08T12:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the latest exam result based on date  (page filter applied for person)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-latest-exam-result-based-on-date-page-filter/m-p/2446023#M65632</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok. Now please try this. If you recieve an error then the problem would be having multiple exam results for the same petson in the same day. In this case you need to decide which result would you like display (the max or min for example)&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Last Exam Result =
VAR NameTable =
    CALCULATETABLE ( exam, ALLEXCEPT ( exams, exams[name] ) )
VAR lastExamDate =
    MAXX ( NameTable, exams[date] )
RETURN
    IF (
        HASONEVALUE ( exams[name] ),
        SELECTCOLUMNS (
            FILTER ( NameTable, exams[date] = lastExamDate ),
            "Exam", exams[exam]
        )
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 12:49:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-latest-exam-result-based-on-date-page-filter/m-p/2446023#M65632</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-08T12:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the latest exam result based on date  (page filter applied for person)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-latest-exam-result-based-on-date-page-filter/m-p/2446024#M65633</link>
      <description>&lt;P&gt;You could use TOPN, like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Latest result = SELECTCOLUMNS( TOPN( 1, Exams, Exams[Date]), "@val", Exams[Result])&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 08 Apr 2022 12:51:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-latest-exam-result-based-on-date-page-filter/m-p/2446024#M65633</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-04-08T12:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the latest exam result based on date  (page filter applied for person)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-latest-exam-result-based-on-date-page-filter/m-p/2446036#M65634</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also one more thing. I can see in this screenshot that for each name there is multiple Id numbers. Is this the exam ID?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 12:55:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-latest-exam-result-based-on-date-page-filter/m-p/2446036#M65634</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-08T12:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the latest exam result based on date  (page filter applied for person)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-latest-exam-result-based-on-date-page-filter/m-p/2446065#M65637</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;Please see link for either calculated column or measure. Measures are genrally better,except if you need a sort field.&lt;/P&gt;&lt;P&gt;If names are joined on a numerical id vs. a string, that is a good move too. I added a date table so you can use time intel functions..&lt;/P&gt;&lt;P&gt;I hope this is a good solution for you.&lt;A title="Last Score" href="https://drive.google.com/file/d/1n8HVWo-ScrlD4HpQlweUOuLHhH9qkPue/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1n8HVWo-ScrlD4HpQlweUOuLHhH9qkPue/view?usp=sharing&lt;/A&gt;&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>Fri, 08 Apr 2022 13:06:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-latest-exam-result-based-on-date-page-filter/m-p/2446065#M65637</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-04-08T13:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the latest exam result based on date  (page filter applied for person)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-latest-exam-result-based-on-date-page-filter/m-p/2446121#M65643</link>
      <description>&lt;P&gt;yes, exam table has its own ids&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 13:28:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-latest-exam-result-based-on-date-page-filter/m-p/2446121#M65643</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-08T13:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the latest exam result based on date  (page filter applied for person)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-latest-exam-result-based-on-date-page-filter/m-p/2446139#M65645</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So did you try the last code? Did you receive an error?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 13:36:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-latest-exam-result-based-on-date-page-filter/m-p/2446139#M65645</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-08T13:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the latest exam result based on date  (page filter applied for person)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-latest-exam-result-based-on-date-page-filter/m-p/2446294#M65657</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have uploaded the pbix file to this location.&lt;/P&gt;&lt;P&gt;&lt;A href="https://easyupload.io/lktsnj" target="_blank"&gt;https://easyupload.io/lktsnj&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 14:43:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-latest-exam-result-based-on-date-page-filter/m-p/2446294#M65657</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-08T14:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the latest exam result based on date  (page filter applied for person)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-latest-exam-result-based-on-date-page-filter/m-p/2447591#M65746</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Applogies for the late reply.&lt;/P&gt;&lt;P&gt;Here is a the sample file with the solution&amp;nbsp;&lt;A href="https://www.dropbox.com/t/bSsLhvMUUkaCIQm8" target="_blank" rel="noopener"&gt;https://www.dropbox.com/t/bSsLhvMUUkaCIQm8&lt;/A&gt;&lt;BR /&gt;Actually you were adding the code as a column where my code was for a measure. The HASONEVALUE is blanking out the result when you add it as a column. Here are both solutions:&lt;/P&gt;&lt;P&gt;&amp;gt; New Column &amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Last Exam Result = 
VAR NameTable =
    CALCULATETABLE ( exams, ALLEXCEPT ( exams, exams[name] ) )
VAR lastExamDate =
    MAXX ( NameTable, exams[date] )
RETURN
    SELECTCOLUMNS (
        FILTER ( NameTable, exams[date] = lastExamDate ),
        "Exam", exams[exam]
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; New Measure &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Last Exam Result Measure = 
VAR NameTable =
    CALCULATETABLE ( exams, ALLEXCEPT ( exams, exams[name] ) )
VAR lastExamDate =
    MAXX ( NameTable, exams[date] )
RETURN
    IF (
        HASONEVALUE ( exams[name] ),
        SELECTCOLUMNS (
            FILTER ( NameTable, exams[date] = lastExamDate ),
            "Exam", exams[exam]
        )
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Apr 2022 06:18:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-latest-exam-result-based-on-date-page-filter/m-p/2447591#M65746</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-10T06:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the latest exam result based on date  (page filter applied for person)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-latest-exam-result-based-on-date-page-filter/m-p/2447816#M65770</link>
      <description>&lt;P&gt;Hi Tamer;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for the answer. It works like a magic.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Apr 2022 19:42:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-latest-exam-result-based-on-date-page-filter/m-p/2447816#M65770</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-10T19:42:40Z</dc:date>
    </item>
  </channel>
</rss>

