<?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: Power BI - Clash Matrix in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Clash-Matrix/m-p/3068789#M106384</link>
    <description>&lt;P&gt;Ah! I've got it. I simply just created a calculated table with the two columns that I needed to compare.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I can't thank you enough : )&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2023 11:57:53 GMT</pubDate>
    <dc:creator>RyanHare92</dc:creator>
    <dc:date>2023-02-08T11:57:53Z</dc:date>
    <item>
      <title>Power BI - Clash Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Clash-Matrix/m-p/3067017#M106243</link>
      <description>&lt;P&gt;I have the following dataset:&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&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;and I wanted to create a clash matrix in Power BI that looks like this:&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&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;My first issue is that, if I put the product in the Rows and Columns sections of a Matrix, it only displays in the column section. To get around this, I've created a duplicate of the Product column, which seems to have let me create the matrix structure that I want.&lt;/P&gt;&lt;P&gt;I've also created a measure to get the amount of each ID per product:&lt;/P&gt;&lt;P&gt;Entries = CALCULATE((DISTINCTCOUNT(Table2[ID])),ALLEXCEPT(Table2, Table2[Prod]))&lt;/P&gt;&lt;P&gt;Therefore, I now have this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would I put together a measure that would allow the overlap of each products ID to be counted? I have tried a few different ways with INTERSECT, but I appear to be failing miserably.&lt;BR /&gt;&lt;BR /&gt;Please keep in mind that the actual data I will be aplying this to has milions of rows of data.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 19:47:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Clash-Matrix/m-p/3067017#M106243</guid>
      <dc:creator>RyanHare92</dc:creator>
      <dc:date>2023-02-07T19:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI - Clash Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Clash-Matrix/m-p/3067989#M106303</link>
      <description>&lt;P&gt;NewMeasure=IF(MAX('Table1'[Prod])&amp;lt;&amp;gt;MAX('Table2'[Prod]), COUNTROWS(INTERSECT(VALUES(Table1[ID]),CALCULATETABLE(VALUES(Table1[ID]),'Table1'[Prod]=MAX('Table2'[Prod])))))&lt;/P&gt;
&lt;P&gt;and there is no relationship between the two tables&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 06:38:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Clash-Matrix/m-p/3067989#M106303</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2023-02-08T06:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI - Clash Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Clash-Matrix/m-p/3068737#M106379</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works perfectly if I have two seperate tables. In my current situation, the real data I'm working with has milions of rows of data, so duplicating it would be very ineficient.&lt;BR /&gt;&lt;BR /&gt;I tried using the following having only one table, but it didn't seem to work:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;NewMeasure 2 = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table1'&lt;/SPAN&gt;&lt;SPAN&gt;[Prod]&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;lt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table1'&lt;/SPAN&gt;&lt;SPAN&gt;[Prod2]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;INTERSECT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Table1&lt;/SPAN&gt;&lt;SPAN&gt;[ID]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATETABLE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Table1&lt;/SPAN&gt;&lt;SPAN&gt;[ID]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;'Table1'&lt;/SPAN&gt;&lt;SPAN&gt;[Prod]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table1'&lt;/SPAN&gt;&lt;SPAN&gt;[Prod2]&lt;/SPAN&gt;&lt;SPAN&gt;)))))&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;The above assumes that I have a second column that is a duplicate of Prod, called Prod2.&lt;BR /&gt;&lt;BR /&gt;Any thoughts?&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Feb 2023 11:21:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Clash-Matrix/m-p/3068737#M106379</guid>
      <dc:creator>RyanHare92</dc:creator>
      <dc:date>2023-02-08T11:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI - Clash Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Clash-Matrix/m-p/3068789#M106384</link>
      <description>&lt;P&gt;Ah! I've got it. I simply just created a calculated table with the two columns that I needed to compare.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I can't thank you enough : )&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 11:57:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Clash-Matrix/m-p/3068789#M106384</guid>
      <dc:creator>RyanHare92</dc:creator>
      <dc:date>2023-02-08T11:57:53Z</dc:date>
    </item>
  </channel>
</rss>

