<?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: Getting the latest status from another table based on ID Ref in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-latest-status-from-another-table-based-on-ID-Ref/m-p/1258288#M20851</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for your swift response and help !&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried out your suggestion and the end result is equiavlent to what&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp; proposed. But somehow the return value is not the latest value that it should return.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jul 2020 07:24:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-07-29T07:24:05Z</dc:date>
    <item>
      <title>Getting the latest status from another table based on ID Ref</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-latest-status-from-another-table-based-on-ID-Ref/m-p/1257873#M20837</link>
      <description>&lt;P&gt;Hi All ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a custom column to get the latest value from a related table based the latest modified time and date. I have written this formula but an error resulted due to multiple values being returned.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Lastest Status = LOOKUPVALUE(Table_A[Status],Table_A[ID_Ref],Table_B[ID])&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How should i write the DAX to return only the latest status? Appreciate your help !&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 04:45:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-latest-status-from-another-table-based-on-ID-Ref/m-p/1257873#M20837</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-29T04:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the latest status from another table based on ID Ref</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-latest-status-from-another-table-based-on-ID-Ref/m-p/1257884#M20838</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try using&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Operator=
CALCULATE (
    FIRSTNONBLANK ( Table_A[Status], 1 ),
    FILTER ( ALL ( Table_A ), Table_A[ID] = Table_B[ID] )
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 04:53:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-latest-status-from-another-table-based-on-ID-Ref/m-p/1257884#M20838</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-29T04:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the latest status from another table based on ID Ref</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-latest-status-from-another-table-based-on-ID-Ref/m-p/1257886#M20839</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also see&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Lookup-value-error-multiple-values-was-supplied/td-p/768049" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Lookup-value-error-multiple-values-was-supplied/td-p/768049&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/LOOKUPVALUE-with-multiple-results/td-p/541324" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/LOOKUPVALUE-with-multiple-results/td-p/541324&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=e8OWQ7Xl3m0" target="_blank"&gt;https://www.youtube.com/watch?v=e8OWQ7Xl3m0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Nathani&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 04:56:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-latest-status-from-another-table-based-on-ID-Ref/m-p/1257886#M20839</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-29T04:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the latest status from another table based on ID Ref</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-latest-status-from-another-table-based-on-ID-Ref/m-p/1257903#M20843</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks. Let me go try out !&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 05:09:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-latest-status-from-another-table-based-on-ID-Ref/m-p/1257903#M20843</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-29T05:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the latest status from another table based on ID Ref</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-latest-status-from-another-table-based-on-ID-Ref/m-p/1257944#M20844</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , Try as new colum&amp;nbsp; &lt;/P&gt;
&lt;P&gt;maxx(filter(Table, Table_A[ID_Ref]=Table_B[ID]),Table_A[Status])&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;maxx(filter(Table, Table_A[ID_Ref]=Table_B[ID]),lastnonblankvalue(Table_A[Date],max(Table_A[Status])))&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 05:38:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-latest-status-from-another-table-based-on-ID-Ref/m-p/1257944#M20844</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-07-29T05:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the latest status from another table based on ID Ref</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-latest-status-from-another-table-based-on-ID-Ref/m-p/1258030#M20848</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I understand based on your explanation is that you are trying to add a calculated column on the one side of a many to one relation where TableB is on one side and Table A is on many side.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the reason why you are getting multiple values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case you should try creating a calculated column as below on the Table B which is on one(1) side of (1..*) relation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Latest Status = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;MAXX (&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;RELATEDTABLE(TableA)&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;, TableA[Status]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;You may need to alter this expression depending on your model as you say that is based on latest date and time.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Hope you find this hhelpful.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 29 Jul 2020 06:11:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-latest-status-from-another-table-based-on-ID-Ref/m-p/1258030#M20848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-29T06:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the latest status from another table based on ID Ref</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-latest-status-from-another-table-based-on-ID-Ref/m-p/1258055#M20849</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Somehow it work for all my sample records (total around 13) except for 1. Not sure what went wrong with but i will recheck my datasource.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks !&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 06:21:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-latest-status-from-another-table-based-on-ID-Ref/m-p/1258055#M20849</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-29T06:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the latest status from another table based on ID Ref</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-latest-status-from-another-table-based-on-ID-Ref/m-p/1258255#M20850</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response. I tried your suggestion but the result is not returning correctly though. I guess maxx with related table will return the largest value relevant to the associated ID but somehow it may not work for my context. Anyway, many thanks for your help!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 07:17:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-latest-status-from-another-table-based-on-ID-Ref/m-p/1258255#M20850</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-29T07:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the latest status from another table based on ID Ref</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-latest-status-from-another-table-based-on-ID-Ref/m-p/1258288#M20851</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for your swift response and help !&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried out your suggestion and the end result is equiavlent to what&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp; proposed. But somehow the return value is not the latest value that it should return.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 07:24:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-latest-status-from-another-table-based-on-ID-Ref/m-p/1258288#M20851</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-29T07:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the latest status from another table based on ID Ref</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-latest-status-from-another-table-based-on-ID-Ref/m-p/1258292#M20852</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; ,Can you share sample data and sample output in table format? &lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 07:25:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-latest-status-from-another-table-based-on-ID-Ref/m-p/1258292#M20852</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-07-29T07:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the latest status from another table based on ID Ref</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-latest-status-from-another-table-based-on-ID-Ref/m-p/1258923#M20871</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try cleaning and trimming the&amp;nbsp; Column in Power Query.&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;Table A&lt;/P&gt;&lt;P&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;&lt;P&gt;Table B&lt;/P&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Harsh Nathani&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 10:37:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-latest-status-from-another-table-based-on-ID-Ref/m-p/1258923#M20871</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-29T10:37:39Z</dc:date>
    </item>
  </channel>
</rss>

