<?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: one to many relationship RELATED () function in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-to-many-relationship-RELATED-function/m-p/2715842#M82681</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;Thank you&lt;/P&gt;</description>
    <pubDate>Mon, 22 Aug 2022 06:45:51 GMT</pubDate>
    <dc:creator>georgec96</dc:creator>
    <dc:date>2022-08-22T06:45:51Z</dc:date>
    <item>
      <title>one to many relationship RELATED () function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-to-many-relationship-RELATED-function/m-p/2691663#M81075</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two tables with and trying to get the related column from the many side of the relationship to the one side, however the function RELATED() does not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a&amp;nbsp; table called open_orders and one table called open_lines which contains duplicate values, I would like to get the status column from the open_lines and bring it to the open_orders table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone explain me how could i achieve that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 07:44:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-to-many-relationship-RELATED-function/m-p/2691663#M81075</guid>
      <dc:creator>georgec96</dc:creator>
      <dc:date>2022-08-10T07:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: one to many relationship RELATED () function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-to-many-relationship-RELATED-function/m-p/2691749#M81082</link>
      <description>&lt;P&gt;RELATED works from the many side to the one side, you need RELATEDTABLE. You could create a column like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Status = MINX( RELATEDTABLE(open_lines), open_lines[status])&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 10 Aug 2022 08:15:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-to-many-relationship-RELATED-function/m-p/2691749#M81082</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-08-10T08:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: one to many relationship RELATED () function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-to-many-relationship-RELATED-function/m-p/2691760#M81084</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, that worked perfectly. Would you be able to explain how does it work though? If there is duplicate values which one is it retrieving?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 08:19:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-to-many-relationship-RELATED-function/m-p/2691760#M81084</guid>
      <dc:creator>georgec96</dc:creator>
      <dc:date>2022-08-10T08:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: one to many relationship RELATED () function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-to-many-relationship-RELATED-function/m-p/2691770#M81085</link>
      <description>&lt;P&gt;It will get the first one in alphabetical order, that is what the MIN is doing. From the screenshots it looked like all entries for the same order had the same status, if that's not the case then you could look to combine SELECTCOLUMNS, TOPN and RELATEDTABLE to sort the related entries by whichever columns were relevant&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 08:24:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-to-many-relationship-RELATED-function/m-p/2691770#M81085</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-08-10T08:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: one to many relationship RELATED () function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-to-many-relationship-RELATED-function/m-p/2700495#M81722</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp; Would it be possible to retrieve the value from the status column based on another date column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically I want to get the latest status based on the date column&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 13:29:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-to-many-relationship-RELATED-function/m-p/2700495#M81722</guid>
      <dc:creator>georgec96</dc:creator>
      <dc:date>2022-08-15T13:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: one to many relationship RELATED () function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-to-many-relationship-RELATED-function/m-p/2700582#M81727</link>
      <description>&lt;P&gt;You would need a column containing unique identifiers in case of multiple entries on the same date. If there isn't such a column in the data already, you could add an index column in Power Query and use that.&lt;/P&gt;&lt;P&gt;Then you can create a column like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Status =
SELECTCOLUMNS (
    TOPN (
        1,
        RELATEDTABLE ( order_lines ),
        order_lines[status date], DESC,
        order_lines[unique ID], DESC
    ),
    "@val", order_lines[Status]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 15 Aug 2022 13:56:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-to-many-relationship-RELATED-function/m-p/2700582#M81727</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-08-15T13:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: one to many relationship RELATED () function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-to-many-relationship-RELATED-function/m-p/2715842#M82681</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 06:45:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-to-many-relationship-RELATED-function/m-p/2715842#M82681</guid>
      <dc:creator>georgec96</dc:creator>
      <dc:date>2022-08-22T06:45:51Z</dc:date>
    </item>
  </channel>
</rss>

