<?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 filter subset of same table based on not in filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filter-subset-of-same-table-based-on-not-in-filter/m-p/1204555#M19347</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for the correct dax syntax to get all users in my table who have the licenceType = "demo" &amp;amp;&amp;amp; userRole= "customer" and at the same time do not have the licenceType = "full" &amp;amp;&amp;amp; userRole= "customer". As a result I want to get a distinctcount of the users who only have the licenceType = "demo" and not licenceType = "full". I'm looking forward to your help...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| userId | userRole | licenceType | date | action&lt;/P&gt;&lt;P&gt;| a | customer | demo | 21.12.2019 | action&lt;/P&gt;&lt;P&gt;| a | customer | full | 22.12.2019 | action&lt;/P&gt;&lt;P&gt;| b | customer | demo | 22.12.2019 | action&lt;/P&gt;&lt;P&gt;| c | customer | demo | 22.12.2019 | action&lt;/P&gt;&lt;P&gt;| c | customer | full | 29.12.2019 | action&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result based on this sample should be 1.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jul 2020 18:42:02 GMT</pubDate>
    <dc:creator>power_roboter</dc:creator>
    <dc:date>2020-07-06T18:42:02Z</dc:date>
    <item>
      <title>filter subset of same table based on not in filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filter-subset-of-same-table-based-on-not-in-filter/m-p/1204555#M19347</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for the correct dax syntax to get all users in my table who have the licenceType = "demo" &amp;amp;&amp;amp; userRole= "customer" and at the same time do not have the licenceType = "full" &amp;amp;&amp;amp; userRole= "customer". As a result I want to get a distinctcount of the users who only have the licenceType = "demo" and not licenceType = "full". I'm looking forward to your help...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| userId | userRole | licenceType | date | action&lt;/P&gt;&lt;P&gt;| a | customer | demo | 21.12.2019 | action&lt;/P&gt;&lt;P&gt;| a | customer | full | 22.12.2019 | action&lt;/P&gt;&lt;P&gt;| b | customer | demo | 22.12.2019 | action&lt;/P&gt;&lt;P&gt;| c | customer | demo | 22.12.2019 | action&lt;/P&gt;&lt;P&gt;| c | customer | full | 29.12.2019 | action&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result based on this sample should be 1.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 18:42:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filter-subset-of-same-table-based-on-not-in-filter/m-p/1204555#M19347</guid>
      <dc:creator>power_roboter</dc:creator>
      <dc:date>2020-07-06T18:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: filter subset of same table based on not in filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filter-subset-of-same-table-based-on-not-in-filter/m-p/1204650#M19351</link>
      <description>&lt;P&gt;Here is a rough version.&amp;nbsp; May need some context refinement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;OnlyDemo = 
var fulls = SELECTCOLUMNS(CALCULATETABLE('Table','Table'[licenceType ]="full"),"id",'Table'[userId ])
var demos = SELECTCOLUMNS(CALCULATETABLE('Table','Table'[licenceType ]="demo"),"id",'Table'[userId ])
return countrows(except(demos,fulls))&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 06 Jul 2020 20:10:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filter-subset-of-same-table-based-on-not-in-filter/m-p/1204650#M19351</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-07-06T20:10:34Z</dc:date>
    </item>
  </channel>
</rss>

