<?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 dynamic filtering of a virtual table using a measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-filtering-of-a-virtual-table-using-a-measure/m-p/2895936#M94140</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for advice on an issue (I'm new to Power BI).&amp;nbsp; I have data that is used for benchmarking.&amp;nbsp; The relevant table contains both the data to be benchmarked (dataA) and the data against which it will be benchmarked (dataB).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To separate the data so that dataA is not included in dataB, as it's not good practice to include the data to be benchmarked in the data that it will be benchmarked against, I have created a virtual table that is filtered by a measure [Active Org].&amp;nbsp; The measure is controlled by a slicer that selects the client allowing us to see their data (dataA) in comparison with dataB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This virtual table it relatively straightforward:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VirtualTable1 = &lt;/SPAN&gt;&lt;SPAN&gt;filter&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DataTable&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;DataTable&lt;/SPAN&gt;&lt;SPAN&gt;[OrgID]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;[Active Org]&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;the table itself doesn't appear to physically filter, but measures based on the table respond to the slicer.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;What I'd like to do it create the corresponding table containing dataB using the opposite command, such as:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VirtualTable2 = filter(DataTable,DataTable[OrgID]&amp;nbsp;&amp;lt;&amp;gt; [Active Org])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;but . . . I can't get this to work at all.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Can anybody advice here, please?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Kind regards&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 09 Nov 2022 17:14:42 GMT</pubDate>
    <dc:creator>swheeler</dc:creator>
    <dc:date>2022-11-09T17:14:42Z</dc:date>
    <item>
      <title>dynamic filtering of a virtual table using a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-filtering-of-a-virtual-table-using-a-measure/m-p/2895936#M94140</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for advice on an issue (I'm new to Power BI).&amp;nbsp; I have data that is used for benchmarking.&amp;nbsp; The relevant table contains both the data to be benchmarked (dataA) and the data against which it will be benchmarked (dataB).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To separate the data so that dataA is not included in dataB, as it's not good practice to include the data to be benchmarked in the data that it will be benchmarked against, I have created a virtual table that is filtered by a measure [Active Org].&amp;nbsp; The measure is controlled by a slicer that selects the client allowing us to see their data (dataA) in comparison with dataB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This virtual table it relatively straightforward:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VirtualTable1 = &lt;/SPAN&gt;&lt;SPAN&gt;filter&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DataTable&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;DataTable&lt;/SPAN&gt;&lt;SPAN&gt;[OrgID]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;[Active Org]&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;the table itself doesn't appear to physically filter, but measures based on the table respond to the slicer.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;What I'd like to do it create the corresponding table containing dataB using the opposite command, such as:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VirtualTable2 = filter(DataTable,DataTable[OrgID]&amp;nbsp;&amp;lt;&amp;gt; [Active Org])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;but . . . I can't get this to work at all.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Can anybody advice here, please?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Kind regards&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 09 Nov 2022 17:14:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-filtering-of-a-virtual-table-using-a-measure/m-p/2895936#M94140</guid>
      <dc:creator>swheeler</dc:creator>
      <dc:date>2022-11-09T17:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic filtering of a virtual table using a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-filtering-of-a-virtual-table-using-a-measure/m-p/2895950#M94142</link>
      <description>&lt;P&gt;You could try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;VirtualTable2 =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;filter&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DataTable&lt;/SPAN&gt;&lt;SPAN&gt;,NOT(&lt;/SPAN&gt;&lt;SPAN&gt;DataTable&lt;/SPAN&gt;&lt;SPAN&gt;[OrgID]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;[Active Org])&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 17:28:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-filtering-of-a-virtual-table-using-a-measure/m-p/2895950#M94142</guid>
      <dc:creator>djurecic</dc:creator>
      <dc:date>2022-11-09T17:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic filtering of a virtual table using a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-filtering-of-a-virtual-table-using-a-measure/m-p/2897043#M94238</link>
      <description>&lt;P&gt;thank you - unfortunately that doesn't work&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 08:45:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-filtering-of-a-virtual-table-using-a-measure/m-p/2897043#M94238</guid>
      <dc:creator>swheeler</dc:creator>
      <dc:date>2022-11-10T08:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic filtering of a virtual table using a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-filtering-of-a-virtual-table-using-a-measure/m-p/2897145#M94245</link>
      <description>&lt;P&gt;calculated table is not supposed to be responsive to the slicer. I would suggest you simplify your report, upload your pbix file here and let us see how it could be solved.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 09:27:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-filtering-of-a-virtual-table-using-a-measure/m-p/2897145#M94245</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-11-10T09:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic filtering of a virtual table using a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-filtering-of-a-virtual-table-using-a-measure/m-p/2897980#M94294</link>
      <description>&lt;P&gt;thank you very much - I'm not oging to upload the pbix, but I take your point and advice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 16:09:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-filtering-of-a-virtual-table-using-a-measure/m-p/2897980#M94294</guid>
      <dc:creator>swheeler</dc:creator>
      <dc:date>2022-11-10T16:09:30Z</dc:date>
    </item>
  </channel>
</rss>

