<?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 Calculated column based on different table using Contains (or anything similar) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-based-on-different-table-using-Contains-or/m-p/2958864#M98413</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having problems creating a calculated column based on a column in a different table using the 'contains' function. I either get an error or '[List]'. I want to create a field in tablea that is based on values from fields in tablea and tableb. tablea and tableb are joined on a many to one relationship.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tablea *:1 tableb&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want something along the lines of:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if contains(tableb[field1], "x") then "new"&lt;/P&gt;&lt;P&gt;else tablea[field1]&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the result to look like the image below:&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be greatly appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&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;</description>
    <pubDate>Fri, 09 Dec 2022 11:12:11 GMT</pubDate>
    <dc:creator>knagar_5</dc:creator>
    <dc:date>2022-12-09T11:12:11Z</dc:date>
    <item>
      <title>Calculated column based on different table using Contains (or anything similar)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-based-on-different-table-using-Contains-or/m-p/2958864#M98413</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having problems creating a calculated column based on a column in a different table using the 'contains' function. I either get an error or '[List]'. I want to create a field in tablea that is based on values from fields in tablea and tableb. tablea and tableb are joined on a many to one relationship.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tablea *:1 tableb&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want something along the lines of:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if contains(tableb[field1], "x") then "new"&lt;/P&gt;&lt;P&gt;else tablea[field1]&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the result to look like the image below:&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be greatly appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&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;</description>
      <pubDate>Fri, 09 Dec 2022 11:12:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-based-on-different-table-using-Contains-or/m-p/2958864#M98413</guid>
      <dc:creator>knagar_5</dc:creator>
      <dc:date>2022-12-09T11:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated column based on different table using Contains (or anything similar)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-based-on-different-table-using-Contains-or/m-p/2958919#M98422</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&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;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Newfield CC =
IF ( CONTAINSSTRING ( RELATED ( Tableb[field1] ), "x" ), "new", Tablea[field1] )
&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 09 Dec 2022 11:44:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-based-on-different-table-using-Contains-or/m-p/2958919#M98422</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-12-09T11:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated column based on different table using Contains (or anything similar)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-based-on-different-table-using-Contains-or/m-p/2958956#M98429</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 12:05:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-based-on-different-table-using-Contains-or/m-p/2958956#M98429</guid>
      <dc:creator>knagar_5</dc:creator>
      <dc:date>2022-12-09T12:05:11Z</dc:date>
    </item>
  </channel>
</rss>

