<?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: Distinct count of a record set minus what is in another record set in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-of-a-record-set-minus-what-is-in-another-record/m-p/2482115#M67992</link>
    <description>&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;Thank you very much, I was actually pretty close, just couldn't exactly nail it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;Vera&lt;/P&gt;</description>
    <pubDate>Thu, 28 Apr 2022 05:50:19 GMT</pubDate>
    <dc:creator>VeraVB</dc:creator>
    <dc:date>2022-04-28T05:50:19Z</dc:date>
    <item>
      <title>Distinct count of a record set minus what is in another record set</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-of-a-record-set-minus-what-is-in-another-record/m-p/2480534#M67867</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to make DAX formule from something simple in SQL but I don't get it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the select statement:&amp;nbsp;&lt;/P&gt;&lt;P&gt;select distinct rav_accountid&lt;BR /&gt;from rav_orderhistory&lt;BR /&gt;where rav_fiscalyear = 2022&lt;BR /&gt;and rav_accountid not in (&lt;BR /&gt;(select distinct rav_accountid&lt;BR /&gt;from rav_orderhistory&lt;BR /&gt;where rav_fiscalyear = 2021))&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can count the accounts for 2022 and I can count the ones for 2021, but not the account that exist in 2022 minus the accounts of 2021.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there perhaps a website or an app that can convert SQL to DAX?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 13:01:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-of-a-record-set-minus-what-is-in-another-record/m-p/2480534#M67867</guid>
      <dc:creator>VeraVB</dc:creator>
      <dc:date>2022-04-27T13:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct count of a record set minus what is in another record set</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-of-a-record-set-minus-what-is-in-another-record/m-p/2480760#M67885</link>
      <description>&lt;P&gt;You can use VALUES and EXCEPT, along the lines of&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Num new in 2022 =
var accounts2021 = CALCULATETABLE( VALUES('Table'[Account ID]), 'Table'[Year created] = 2021)
var accounts2022 = CALCULATETABLE( VALUES('Table'[Account ID]), 'Table'[Year created] = 2022)
return COUNTROWS( EXCEPT( accounts2022, accounts2021) )&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 27 Apr 2022 14:39:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-of-a-record-set-minus-what-is-in-another-record/m-p/2480760#M67885</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-04-27T14:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct count of a record set minus what is in another record set</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-of-a-record-set-minus-what-is-in-another-record/m-p/2482115#M67992</link>
      <description>&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;Thank you very much, I was actually pretty close, just couldn't exactly nail it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;Vera&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 05:50:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-of-a-record-set-minus-what-is-in-another-record/m-p/2482115#M67992</guid>
      <dc:creator>VeraVB</dc:creator>
      <dc:date>2022-04-28T05:50:19Z</dc:date>
    </item>
  </channel>
</rss>

