<?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: Excel formula to Dax - Counting distinct values based on the date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-formula-to-Dax-Counting-distinct-values-based-on-the-date/m-p/2611584#M75767</link>
    <description>&lt;P&gt;But unless I'm mistaken your Excel formula is not doing that - the part&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IF([@[Offer_Date]]=[Offer_Date],...&lt;/LI-CODE&gt;&lt;P&gt;means that the counts will be for a given date only.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jun 2022 09:04:09 GMT</pubDate>
    <dc:creator>Jos_Woolley</dc:creator>
    <dc:date>2022-06-30T09:04:09Z</dc:date>
    <item>
      <title>Excel formula to Dax - Counting distinct values based on the date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-formula-to-Dax-Counting-distinct-values-based-on-the-date/m-p/2611389#M75760</link>
      <description>&lt;P&gt;Morning all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am hoping for a little help to convert the following formual to Dax or advice as this maybe easier utilising a calculated table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically it is counting distinct values based on the date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=SUM(--(FREQUENCY(IF([@[Offer_Date]]=[Offer_Date], COUNTIF([Offer_Account], "&amp;lt;"&amp;amp;[Offer_Account]), ""), (COUNTIF([Offer_Account], "&amp;lt;"&amp;amp;[Offer_Account])))&amp;gt;0))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 08:40:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-formula-to-Dax-Counting-distinct-values-based-on-the-date/m-p/2611389#M75760</guid>
      <dc:creator>cooksteve09</dc:creator>
      <dc:date>2022-06-30T08:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Excel formula to Dax - Counting distinct values based on the date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-formula-to-Dax-Counting-distinct-values-based-on-the-date/m-p/2611538#M75764</link>
      <description>&lt;P&gt;Perhaps this measure:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MyMeasure =
CALCULATE(
    DISTINCTCOUNT( 'Table'[Offer_Account] ),
    ALLEXCEPT( 'Table', 'Table'[Offer_Date] )
)&lt;/LI-CODE&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 08:52:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-formula-to-Dax-Counting-distinct-values-based-on-the-date/m-p/2611538#M75764</guid>
      <dc:creator>Jos_Woolley</dc:creator>
      <dc:date>2022-06-30T08:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Excel formula to Dax - Counting distinct values based on the date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-formula-to-Dax-Counting-distinct-values-based-on-the-date/m-p/2611550#M75766</link>
      <description>&lt;P&gt;Thank you but that seems to be counting Distinct Accounts only....if the account appears on different days i need it to count both instances&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope that makes sense&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 08:55:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-formula-to-Dax-Counting-distinct-values-based-on-the-date/m-p/2611550#M75766</guid>
      <dc:creator>cooksteve09</dc:creator>
      <dc:date>2022-06-30T08:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Excel formula to Dax - Counting distinct values based on the date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-formula-to-Dax-Counting-distinct-values-based-on-the-date/m-p/2611584#M75767</link>
      <description>&lt;P&gt;But unless I'm mistaken your Excel formula is not doing that - the part&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IF([@[Offer_Date]]=[Offer_Date],...&lt;/LI-CODE&gt;&lt;P&gt;means that the counts will be for a given date only.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 09:04:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-formula-to-Dax-Counting-distinct-values-based-on-the-date/m-p/2611584#M75767</guid>
      <dc:creator>Jos_Woolley</dc:creator>
      <dc:date>2022-06-30T09:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Excel formula to Dax - Counting distinct values based on the date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-formula-to-Dax-Counting-distinct-values-based-on-the-date/m-p/2611613#M75771</link>
      <description>&lt;P&gt;Post a small copiable dataset together with expected results.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 09:11:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-formula-to-Dax-Counting-distinct-values-based-on-the-date/m-p/2611613#M75771</guid>
      <dc:creator>Jos_Woolley</dc:creator>
      <dc:date>2022-06-30T09:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Excel formula to Dax - Counting distinct values based on the date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-formula-to-Dax-Counting-distinct-values-based-on-the-date/m-p/2611644#M75773</link>
      <description>&lt;P&gt;Found this in another topic and works great once adjusted for my table and column names&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Measure 2 = var _table=SUMMARIZE('Table','Table'[Shop],'Table'[Date],"distinctcount",DISTINCTCOUNT('Table'[Customer]))
return
SUMX(_table,[distinctcount])&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 09:23:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-formula-to-Dax-Counting-distinct-values-based-on-the-date/m-p/2611644#M75773</guid>
      <dc:creator>cooksteve09</dc:creator>
      <dc:date>2022-06-30T09:23:50Z</dc:date>
    </item>
  </channel>
</rss>

