<?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: Using RELATED for tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-RELATED-for-tables/m-p/2274218#M55432</link>
    <description>&lt;P&gt;Thanks! I understand it now.&lt;/P&gt;</description>
    <pubDate>Sun, 09 Jan 2022 21:06:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-01-09T21:06:05Z</dc:date>
    <item>
      <title>Using RELATED for tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-RELATED-for-tables/m-p/2274053#M55422</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In one of Udemy's example exams, there is a question about two tables - SALES and CITY DATA. They look as following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;City data&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;State (citydata)&lt;/TD&gt;&lt;TD&gt;city&lt;/TD&gt;&lt;TD&gt;Population (million)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sales&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;State (sales)&lt;/TD&gt;&lt;TD&gt;Type&lt;/TD&gt;&lt;TD&gt;Sales&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;State in both tables contain similar values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the question you have to say whether a statement is correct or not. The following statement is, according to them, incorrect. However, I don't understand why, as the function RELATED is working on the one-side of relationships, that can import a column into the sales table:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In the Sales table, you can write a DAX expression that uses the RELATED() function to get data from the City data table.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Can anyone explain?&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jan 2022 14:57:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-RELATED-for-tables/m-p/2274053#M55422</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-09T14:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using RELATED for tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-RELATED-for-tables/m-p/2274069#M55423</link>
      <description>&lt;P&gt;Looking at the tables:&lt;/P&gt;&lt;P&gt;Sales is at the state granularity.&lt;/P&gt;&lt;P&gt;The city table is at the city granularity so each state there has multiple cities. Eg it might look like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;State&lt;/TD&gt;&lt;TD&gt;City&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Note City is unique but State is repeated).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can join state to state between the tables but it will be many to many not 1 to many.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RELATED as you're aware only gets data from the 1 side of a 1 to many relationship.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jan 2022 15:45:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-RELATED-for-tables/m-p/2274069#M55423</guid>
      <dc:creator>bcdobbs</dc:creator>
      <dc:date>2022-01-09T15:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using RELATED for tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-RELATED-for-tables/m-p/2274218#M55432</link>
      <description>&lt;P&gt;Thanks! I understand it now.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jan 2022 21:06:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-RELATED-for-tables/m-p/2274218#M55432</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-09T21:06:05Z</dc:date>
    </item>
  </channel>
</rss>

