<?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: DAX Measure to Check Tag From Different Table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-Check-Tag-From-Different-Table/m-p/2291668#M56347</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="39298" data-lia-user-login="AlexisOlson" class="lia-mention lia-mention-user"&gt;AlexisOlson&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This solution is one step closer. Problem is that this works only for those where Table1[Product] = Table2[Product]. Not if the field in Table1[Product] contains more characters, or two products. See below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;As you can see, it does not map for differently filled fields (Bert.5, XMAN_1, Bert.5 etc..)&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jan 2022 17:29:37 GMT</pubDate>
    <dc:creator>jereaallikko</dc:creator>
    <dc:date>2022-01-19T17:29:37Z</dc:date>
    <item>
      <title>DAX Measure to Check Tag From Different Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-Check-Tag-From-Different-Table/m-p/2290537#M56295</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 solve a problem with relationships and column mapping from other table. I have two tables, both containing hundreds of rows of data. I have created a simple illustration data below. &lt;STRONG&gt;Table1&lt;/STRONG&gt; is considered as Main Data table, whereas &lt;STRONG&gt;Table2&lt;/STRONG&gt; as Product Code mapping Table:&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;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to add Product Code column to Table 1. So basically, I am looking for a solution (DAX, Relationships, etc.) to check if Product in &lt;STRONG&gt;Table2&lt;/STRONG&gt; is included in Product of &lt;STRONG&gt;Table1&lt;/STRONG&gt;. If it is true, then it should map to the correct Product Code. I have tried to play with relationships, but it does not map correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a result, all "Bert" Products should have a code FEB, "WayX" Products should have a code DCA etc...&lt;/P&gt;&lt;P&gt;A desired outcome example:&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;Any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Jere&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 08:48:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-Check-Tag-From-Different-Table/m-p/2290537#M56295</guid>
      <dc:creator>jereaallikko</dc:creator>
      <dc:date>2022-01-19T08:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure to Check Tag From Different Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-Check-Tag-From-Different-Table/m-p/2290760#M56308</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="237748" data-lia-user-login="jereaallikko" class="lia-mention lia-mention-user"&gt;jereaallikko&lt;/a&gt; , A new column in table one using concatenateX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;concatenateX( filter(Table2, Table1[ID] = table2[ID] &amp;amp;&amp;amp; Table1[product] = table2[product]), table2[product code])&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 10:08:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-Check-Tag-From-Different-Table/m-p/2290760#M56308</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-01-19T10:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure to Check Tag From Different Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-Check-Tag-From-Different-Table/m-p/2290993#M56315</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;It didn't work. After a brief investigation, this measure works only if Table1[ID] = Table2[ID]. This should somehow be modified to link between "Product" columns. To Table1 a column or DAX like : Table2[Product] "contains" Table1[Product], then Table2[Product Code].&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 12:00:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-Check-Tag-From-Different-Table/m-p/2290993#M56315</guid>
      <dc:creator>jereaallikko</dc:creator>
      <dc:date>2022-01-19T12:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure to Check Tag From Different Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-Check-Tag-From-Different-Table/m-p/2291550#M56338</link>
      <description>&lt;P&gt;You might be able to do this with a calculated column like this:&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;VAR Prod1 = Table1[Product]
RETURN
    CONCATENATEX (
        CALCULATETABLE (
            VALUES ( Table2[Product Code] ),
            FILTER ( Table2, CONTAINSSTRING ( Prod1, Table2[Product] ) )
        ),
        Table2[Product Code]
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I'd recommend against models that have columns with multiple values concatenated together. It makes measures harder to write and performance will suffer if your datasets get large.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 16:26:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-Check-Tag-From-Different-Table/m-p/2291550#M56338</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2022-01-19T16:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure to Check Tag From Different Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-Check-Tag-From-Different-Table/m-p/2291668#M56347</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="39298" data-lia-user-login="AlexisOlson" class="lia-mention lia-mention-user"&gt;AlexisOlson&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This solution is one step closer. Problem is that this works only for those where Table1[Product] = Table2[Product]. Not if the field in Table1[Product] contains more characters, or two products. See below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;As you can see, it does not map for differently filled fields (Bert.5, XMAN_1, Bert.5 etc..)&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 17:29:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-Check-Tag-From-Different-Table/m-p/2291668#M56347</guid>
      <dc:creator>jereaallikko</dc:creator>
      <dc:date>2022-01-19T17:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure to Check Tag From Different Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-Check-Tag-From-Different-Table/m-p/2291835#M56352</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="237748" data-lia-user-login="jereaallikko" class="lia-mention lia-mention-user"&gt;jereaallikko&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;If possible I would do this always in Powerquery. I just had a discussion about a similar topic yesterday with my team members. So you can create conditiona column in PQ using this logic:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;Text.Contains(MyText, "car", Comparer.OrdinalIgnoreCase) &lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;Lopuksi pieni markkinointi &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;. PowerBI konsultointia + mielenkiintoinen embedded ratkaisu:&amp;nbsp;&lt;A href="https://get.bibook.com/" target="_blank"&gt;https://get.bibook.com/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 19:17:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-Check-Tag-From-Different-Table/m-p/2291835#M56352</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-01-19T19:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure to Check Tag From Different Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-Check-Tag-From-Different-Table/m-p/2291950#M56359</link>
      <description>&lt;P&gt;I'm not sure what you're doing wrong but it works fine for me.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have relationships between the two tables complicating things?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 20:14:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-Check-Tag-From-Different-Table/m-p/2291950#M56359</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2022-01-19T20:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure to Check Tag From Different Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-Check-Tag-From-Different-Table/m-p/2292715#M56415</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="39298" data-lia-user-login="AlexisOlson" class="lia-mention lia-mention-user"&gt;AlexisOlson&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you said, I realized I had an active relationship between the tables that complicated it. Now works fine. Big thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 06:33:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-Check-Tag-From-Different-Table/m-p/2292715#M56415</guid>
      <dc:creator>jereaallikko</dc:creator>
      <dc:date>2022-01-20T06:33:12Z</dc:date>
    </item>
  </channel>
</rss>

