<?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: Noob question about using the Calculate and DistinctCount functions and dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Noob-question-about-using-the-Calculate-and-DistinctCount/m-p/2680285#M80253</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;Thank you, that works perfectly.&lt;/P&gt;&lt;P&gt;Can I ask, when using dates in the Calculate function is the above layout "DATE (yyyy, mm, DD)" the only way to write them? Just asing as this will be something&amp;nbsp; will need to do 100's of times.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;</description>
    <pubDate>Thu, 04 Aug 2022 01:54:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-08-04T01:54:23Z</dc:date>
    <item>
      <title>Noob question about using the Calculate and DistinctCount functions and dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Noob-question-about-using-the-Calculate-and-DistinctCount/m-p/2678883#M80137</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;New to PBI and have started working on few projects and so far am a big fan of the product but I'm new and have a think is a simple quesiton but I'm stuck and seeking some help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Objective -&amp;nbsp; I want to create a Measure that counts the number of distinct files, with a certain status after a certain date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attempt so far -&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CNT files - Closed 22/23 FY = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'TABLE'[ID]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;'TABLE'[File status]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"Closed"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'TABLE'[Date Closed]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;01&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;07&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;2022&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;It works fine with just the File status filter but when I add the date filter I return no results yet I know there are many in the database.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;All assistance would be great.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Cheers&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Phil&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 03 Aug 2022 14:14:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Noob-question-about-using-the-Calculate-and-DistinctCount/m-p/2678883#M80137</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-03T14:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Noob question about using the Calculate and DistinctCount functions and dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Noob-question-about-using-the-Calculate-and-DistinctCount/m-p/2679101#M80155</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , if you are adding a close date filter, that is less than 1-jul-2022, this measure will not give any value as that value has been hard coded for &amp;gt; filter &lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 15:16:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Noob-question-about-using-the-Calculate-and-DistinctCount/m-p/2679101#M80155</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-08-03T15:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Noob question about using the Calculate and DistinctCount functions and dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Noob-question-about-using-the-Calculate-and-DistinctCount/m-p/2679120#M80156</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;I'm actually only seeking a count of files that have been closed in this Finacial Year i.e. 01/07/2022 through to 30/06/2023.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use the "Filters on this visual" function I get the result i'm seeking, just can't seem to get a measure to achieve the same result.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Any other ideas.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 15:23:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Noob-question-about-using-the-Calculate-and-DistinctCount/m-p/2679120#M80156</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-03T15:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Noob question about using the Calculate and DistinctCount functions and dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Noob-question-about-using-the-Calculate-and-DistinctCount/m-p/2679272#M80167</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;CNT files - Closed 22/23 FY =
CALCULATE (
    DISTINCTCOUNT ( 'TABLE'[ID] ),
    'TABLE'[File status] = "Closed",
    'TABLE'[Date Closed] &amp;gt; DATE ( 2022, 7, 1 )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 03 Aug 2022 16:16:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Noob-question-about-using-the-Calculate-and-DistinctCount/m-p/2679272#M80167</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-03T16:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Noob question about using the Calculate and DistinctCount functions and dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Noob-question-about-using-the-Calculate-and-DistinctCount/m-p/2680285#M80253</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;Thank you, that works perfectly.&lt;/P&gt;&lt;P&gt;Can I ask, when using dates in the Calculate function is the above layout "DATE (yyyy, mm, DD)" the only way to write them? Just asing as this will be something&amp;nbsp; will need to do 100's of times.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 01:54:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Noob-question-about-using-the-Calculate-and-DistinctCount/m-p/2680285#M80253</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-04T01:54:23Z</dc:date>
    </item>
  </channel>
</rss>

