<?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: Relationship on a column containing a match in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationship-on-a-column-containing-a-match/m-p/2639017#M77445</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think creating a relationship is feasible. However you can create measures like&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Amount =
SUMX (
    Table1,
    SUMX (
        Table2,
        IF (
            CONTAINSSTRING ( Table1[Manufacturer], Table2[Manufacturer] ),
            Table1[Amt]
        )
    )
)&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 14 Jul 2022 14:02:53 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-07-14T14:02:53Z</dc:date>
    <item>
      <title>Relationship on a column containing a match</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationship-on-a-column-containing-a-match/m-p/2638874#M77440</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was hoping you could share some guidance: I have a dataset with a large number of tables and am having issues with two specifically:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table 1&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Amt&lt;/TD&gt;&lt;TD&gt;Receipt&lt;/TD&gt;&lt;TD&gt;Manufacturer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&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;&lt;TD&gt;MFN 3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;MFN 4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;MFN 5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create a relationship between Table 2 and Table 1, with a view to use the Manufacturer field from Table 2 in a slicer to identify, as an example, the total amount per potential manufacturer (understanding that the amount 15 would forever be listed against both "MFN 1" and "MFN 3". I would have other slicers from other tables and don't really have an ability to change the structure of Table 1, other than adding columns.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any clever ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 13:24:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationship-on-a-column-containing-a-match/m-p/2638874#M77440</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-14T13:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship on a column containing a match</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationship-on-a-column-containing-a-match/m-p/2639017#M77445</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think creating a relationship is feasible. However you can create measures like&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Amount =
SUMX (
    Table1,
    SUMX (
        Table2,
        IF (
            CONTAINSSTRING ( Table1[Manufacturer], Table2[Manufacturer] ),
            Table1[Amt]
        )
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 14 Jul 2022 14:02:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationship-on-a-column-containing-a-match/m-p/2639017#M77445</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-07-14T14:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship on a column containing a match</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationship-on-a-column-containing-a-match/m-p/2647216#M77899</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need to filter table data, you can consider applying a measure to visual filter pane.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
var a=IF(CONTAINSSTRING(MAX(Table1[Manufacturer]),MAX(Table2[Manufacturer Name])),1,0)
return IF(ISFILTERED(Table2[Manufacturer Name]),a,1)&lt;/LI-CODE&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;Best Regards,&lt;BR /&gt;Community Support Team _ Eason&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 02:42:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationship-on-a-column-containing-a-match/m-p/2647216#M77899</guid>
      <dc:creator>v-easonf-msft</dc:creator>
      <dc:date>2022-07-28T02:42:51Z</dc:date>
    </item>
  </channel>
</rss>

