<?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 value from a calculated column on a different table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-value-from-a-calculated-column-on-a-different-table/m-p/1094408#M15942</link>
    <description>&lt;P&gt;Hi Pat,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your advice.&lt;/P&gt;&lt;P&gt;There is no relationship between two tables and I can make a relationship many to many only.&lt;/P&gt;&lt;P&gt;Years column has values on TableA like the following:&lt;BR /&gt;1&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;8&lt;BR /&gt;&lt;BR /&gt;I want to get these same values on TableB.&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Vadi&lt;/P&gt;</description>
    <pubDate>Mon, 18 May 2020 13:02:54 GMT</pubDate>
    <dc:creator>PbiCeo</dc:creator>
    <dc:date>2020-05-18T13:02:54Z</dc:date>
    <item>
      <title>How to get value from a calculated column on a different table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-value-from-a-calculated-column-on-a-different-table/m-p/1094361#M15938</link>
      <description>&lt;P&gt;I created a calculated column on TableA:&lt;/P&gt;&lt;P&gt;Years = IF('TableA'[Div] = "AA1", 1, DATEDIFF('TableA'[StarDate], TODAY(), Year))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A I want to get the above value on TableB:&lt;/P&gt;&lt;P&gt;YearsRef = 'TableA'[Years]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But got an error like that:&lt;/P&gt;&lt;P&gt;A single value for column 'xxxxx' in table 'xxxxxx' cannot be determined.&lt;BR /&gt;This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min,&amp;nbsp;max, count, or sum to get a single result.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Any advice please to solve that?&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Vadi&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 12:17:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-value-from-a-calculated-column-on-a-different-table/m-p/1094361#M15938</guid>
      <dc:creator>PbiCeo</dc:creator>
      <dc:date>2020-05-18T12:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to get value from a calculated column on a different table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-value-from-a-calculated-column-on-a-different-table/m-p/1094369#M15940</link>
      <description>&lt;P&gt;It depends on the relationship between Tables A and B.&amp;nbsp; If Table A is on the 1 side, you can use RELATED('TableA'[Years]).&amp;nbsp; If reversed, you can use RELATEDTABLE() and an aggregation function like MIN() to get to your result.&amp;nbsp; You can also use LOOKUPVALUE(), in many situation or if no relationship at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should also consider doing what you need with measures instead of calculated columns.&amp;nbsp; Much of what is done in columns should be done in measures.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this works for you, please mark it as solution.&amp;nbsp; Kudos are appreciated too.&amp;nbsp; Please let me know if not.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 12:26:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-value-from-a-calculated-column-on-a-different-table/m-p/1094369#M15940</guid>
      <dc:creator>mahoneypat</dc:creator>
      <dc:date>2020-05-18T12:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get value from a calculated column on a different table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-value-from-a-calculated-column-on-a-different-table/m-p/1094408#M15942</link>
      <description>&lt;P&gt;Hi Pat,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your advice.&lt;/P&gt;&lt;P&gt;There is no relationship between two tables and I can make a relationship many to many only.&lt;/P&gt;&lt;P&gt;Years column has values on TableA like the following:&lt;BR /&gt;1&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;8&lt;BR /&gt;&lt;BR /&gt;I want to get these same values on TableB.&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Vadi&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 13:02:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-value-from-a-calculated-column-on-a-different-table/m-p/1094408#M15942</guid>
      <dc:creator>PbiCeo</dc:creator>
      <dc:date>2020-05-18T13:02:54Z</dc:date>
    </item>
  </channel>
</rss>

