<?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: Matrix Comparison DAX Code in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Comparison-DAX-Code/m-p/3584614#M138296</link>
    <description>&lt;P&gt;Thank you very much for your response. Unfortunately I could not get your solution to work, not because it's incorrect but because my dataset would not allow me to execute your solution. I have a larger master table, from this, I created the table 2 required. However when I try to create a relationship between the two tables I get a circular dependency error. I tried resolving this by creating a table 3 which contains only the 'other table of ID' (I shouldn't have named the variable as table) but Power BI cannot create table 3 since it exceeds 1,000,000 rows. So yeah sadly I don't think there is any&lt;SPAN&gt;way for me to get what I want.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Dec 2023 20:42:29 GMT</pubDate>
    <dc:creator>KiliMiyamoto</dc:creator>
    <dc:date>2023-12-14T20:42:29Z</dc:date>
    <item>
      <title>Matrix Comparison DAX Code</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Comparison-DAX-Code/m-p/3578560#M137999</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The above capture is a simplified example of the results I want. Currently my DAX code is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure = &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;'some_dataset'&lt;/SPAN&gt;&lt;SPAN&gt;[table_of_ID]&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;'some_dataset'&lt;/SPAN&gt;&lt;SPAN&gt;[other_table_of_ID]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;"Y"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;It doens't work because of the MAX( ), which ideally I would like to just remove but can't. Does anybody know a work around?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;table_of_ID&lt;/TD&gt;&lt;TD&gt;other_table_of_ID&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;104&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;101&lt;/TD&gt;&lt;TD&gt;102&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;102&lt;/TD&gt;&lt;TD&gt;101&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;103&lt;/TD&gt;&lt;TD&gt;103&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;104&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 23:48:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Comparison-DAX-Code/m-p/3578560#M137999</guid>
      <dc:creator>KiliMiyamoto</dc:creator>
      <dc:date>2023-12-11T23:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix Comparison DAX Code</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Comparison-DAX-Code/m-p/3578599#M138005</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="659326" data-lia-user-login="KiliMiyamoto" class="lia-mention lia-mention-user"&gt;KiliMiyamoto&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What you're looking for is something like this&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;IF(
	ISEMPTY(
		INTERSECT(
			VALUES(TableOfID[FieldValue])
			VALUES(OtherTableOfID[FieldValue])
		)
	),
	BLANK(),
	TRUE()
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I typed this in Notepad so I doubt it's syntatically correct but should get you to where you want to be.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 00:57:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Comparison-DAX-Code/m-p/3578599#M138005</guid>
      <dc:creator>littlemojopuppy</dc:creator>
      <dc:date>2023-12-12T00:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix Comparison DAX Code</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Comparison-DAX-Code/m-p/3578615#M138009</link>
      <description>&lt;P&gt;Thank you very much for you response. I can see what your code does and I've tried it with my dataset but it returns this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which in fact is the exact same results as my original code, which returns:&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;I can't share the dataset since it belongs to my company.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 01:12:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Comparison-DAX-Code/m-p/3578615#M138009</guid>
      <dc:creator>KiliMiyamoto</dc:creator>
      <dc:date>2023-12-12T01:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix Comparison DAX Code</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Comparison-DAX-Code/m-p/3582980#M138235</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="659326" data-lia-user-login="KiliMiyamoto" class="lia-mention lia-mention-user"&gt;KiliMiyamoto&lt;/a&gt;&amp;nbsp; ,&lt;/P&gt;
&lt;P&gt;According to your describe, here are my test process&lt;/P&gt;
&lt;P&gt;To achieve your goal, you can follow these steps:&lt;/P&gt;
&lt;P&gt;Here are my test data&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1.Create a calculated table &amp;nbsp;by using DAX&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;  Table 2 = VALUES('Table'[table_of_ID]) &lt;/LI-CODE&gt;
&lt;P class="" style="background: white;"&gt;&lt;SPAN&gt;2.Create one to one relationship between two tables&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3.Create a custom column&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = 
    VAR T = 
      SELECTEDVALUE('Table'[other_table_of_ID])
    var N = SELECTEDVALUE('Table'[table_of_ID])
    var res = IF(T = N , "Y",BLANK())
    RETURN res
&lt;/LI-CODE&gt;
&lt;P&gt;4.Use table 'Table'[other_table_of_ID] as row, 'Table2'[other_table_of_ID] as column, calculated column as value.&lt;/P&gt;
&lt;P&gt;5.Final output&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;In order for you to solve the problem faster, you can refer to the following documentation&lt;/P&gt;
&lt;P style="background: white;"&gt;&lt;SPAN&gt;&lt;A title="Original URL: https://community.fabric.microsoft.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490. Click or tap if you trust this link." href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.fabric.microsoft.com%2Ft5%2FCommunity-Blog%2FHow-to-Get-Your-Question-Answered-Quickly%2Fba-p%2F38490&amp;amp;data=05%7C02%7Cv-heq%40microsoft.com%7C4a26252404e84ce9e0fa08dbfc45954a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638381148031434194%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=qRD59AAiDZku46YgEgyCr2QZ%2BwtXcRCrtOCCBWuFuCc%3D&amp;amp;reserved=0" target="_blank" rel="noopener"&gt;How to Get Your Question Answered Quickly - Microsoft Fabric Community&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white;"&gt;&lt;SPAN&gt;Best Regards,&lt;BR /&gt;Albert He &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 01:49:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Comparison-DAX-Code/m-p/3582980#M138235</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-14T01:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix Comparison DAX Code</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Comparison-DAX-Code/m-p/3584614#M138296</link>
      <description>&lt;P&gt;Thank you very much for your response. Unfortunately I could not get your solution to work, not because it's incorrect but because my dataset would not allow me to execute your solution. I have a larger master table, from this, I created the table 2 required. However when I try to create a relationship between the two tables I get a circular dependency error. I tried resolving this by creating a table 3 which contains only the 'other table of ID' (I shouldn't have named the variable as table) but Power BI cannot create table 3 since it exceeds 1,000,000 rows. So yeah sadly I don't think there is any&lt;SPAN&gt;way for me to get what I want.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 20:42:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Comparison-DAX-Code/m-p/3584614#M138296</guid>
      <dc:creator>KiliMiyamoto</dc:creator>
      <dc:date>2023-12-14T20:42:29Z</dc:date>
    </item>
  </channel>
</rss>

