<?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: Are values from Table2 present in Table1 (with filters present on table 2) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Are-values-from-Table2-present-in-Table1-with-filters-present-on/m-p/3076204#M106957</link>
    <description>&lt;P&gt;Side note, my formula works if I change the data in table2 to only have the values that I need. But in the real scenario, table2 will be filtered by the URL of the report.&lt;/P&gt;</description>
    <pubDate>Sat, 11 Feb 2023 18:51:41 GMT</pubDate>
    <dc:creator>Moonc</dc:creator>
    <dc:date>2023-02-11T18:51:41Z</dc:date>
    <item>
      <title>Are values from Table2 present in Table1 (with filters present on table 2)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Are-values-from-Table2-present-in-Table1-with-filters-present-on/m-p/3075816#M106933</link>
      <description>&lt;P&gt;I have two tables that are identical in my data model. The only difference is that Table2 is being filtered by the URL given for the report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to be able to tell what values are present in Table2 in Table1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 1 (Expected Result, actual result is passing all TRUE because [Present] is finding all values in both tables)&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;UserGroup1&lt;/TD&gt;&lt;TD&gt;UserName1&lt;/TD&gt;&lt;TD&gt;Present&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;True&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;False&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Present = CALCULATE(COUNTROWS(TABLE2),FILTER(TABLE2,Table2[UserName2] = Table1[UserName1])) &amp;gt; 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table2 (this table actually contains both UserName C and D, but its just filtered via the URL passed for this user)&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;UserGroup2&lt;/TD&gt;&lt;TD&gt;UserName2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried putting ALLSELECTED() around table2 in the filter, but I think I am misunderstanding how that function works.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Feb 2023 03:09:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Are-values-from-Table2-present-in-Table1-with-filters-present-on/m-p/3075816#M106933</guid>
      <dc:creator>Moonc</dc:creator>
      <dc:date>2023-02-11T03:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Are values from Table2 present in Table1 (with filters present on table 2)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Are-values-from-Table2-present-in-Table1-with-filters-present-on/m-p/3075828#M106934</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="513227" data-lia-user-login="Moonc" class="lia-mention lia-mention-user"&gt;Moonc&lt;/a&gt;&amp;nbsp;Not sure I fully understand the actual data in the data model but you can use INTERSECT to determine which values are present in both tables.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Feb 2023 03:33:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Are-values-from-Table2-present-in-Table1-with-filters-present-on/m-p/3075828#M106934</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-02-11T03:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Are values from Table2 present in Table1 (with filters present on table 2)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Are-values-from-Table2-present-in-Table1-with-filters-present-on/m-p/3075835#M106936</link>
      <description>&lt;P&gt;Intersect has the same problem as my present calculate column has (it will compare ALL values of table1 to table 2). I need table2 to be passing ONLY values for what is currently filtered.The table itself has all of the same values that Table1 has, but it will be filtered by the URL of the report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: to clarify a bit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table1 (Expected result, UserName1 = D is false because it is not selected in the filter)&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;UserGroup1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;UserName1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Present&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;True&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;False&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table2 (Unfiltered)&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;UserGroup2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;UserName2&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table2 (filtered by slicer (hidden to user))&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;UserGroup2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;UserName2&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 2 is always going to filtered. Whenever I try to do comparisons between the two tables, it is comparing the unfiltered version. I need it to compare the filtered version&lt;/P&gt;</description>
      <pubDate>Sat, 11 Feb 2023 03:58:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Are-values-from-Table2-present-in-Table1-with-filters-present-on/m-p/3075835#M106936</guid>
      <dc:creator>Moonc</dc:creator>
      <dc:date>2023-02-11T03:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Are values from Table2 present in Table1 (with filters present on table 2)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Are-values-from-Table2-present-in-Table1-with-filters-present-on/m-p/3076204#M106957</link>
      <description>&lt;P&gt;Side note, my formula works if I change the data in table2 to only have the values that I need. But in the real scenario, table2 will be filtered by the URL of the report.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Feb 2023 18:51:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Are-values-from-Table2-present-in-Table1-with-filters-present-on/m-p/3076204#M106957</guid>
      <dc:creator>Moonc</dc:creator>
      <dc:date>2023-02-11T18:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Are values from Table2 present in Table1 (with filters present on table 2)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Are-values-from-Table2-present-in-Table1-with-filters-present-on/m-p/3076339#M106965</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="513227" data-lia-user-login="Moonc" class="lia-mention lia-mention-user"&gt;Moonc&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are table1 and table2 dataset tables or visuals tables?&lt;/P&gt;&lt;P&gt;make some screenshot if you are not sure.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2023 02:51:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Are-values-from-Table2-present-in-Table1-with-filters-present-on/m-p/3076339#M106965</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-02-12T02:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Are values from Table2 present in Table1 (with filters present on table 2)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Are-values-from-Table2-present-in-Table1-with-filters-present-on/m-p/3076579#M106990</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;- They are dataset tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to solve my problem by shifting my approach and using a measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=COUNTROWS(FILTER(TABLE1,NOT(CONTAINS(TABLE2,TABLE2[UserName2],TABLE1[UserName1]))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the user is filtering table1 (through a slicer), the count will be (blank) until the only value(s) selected are currently present in Table2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am then using this count to dynamically change measures across the pages. Very niche use case, but I got it to work.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2023 17:21:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Are-values-from-Table2-present-in-Table1-with-filters-present-on/m-p/3076579#M106990</guid>
      <dc:creator>Moonc</dc:creator>
      <dc:date>2023-02-12T17:21:02Z</dc:date>
    </item>
  </channel>
</rss>

