<?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 Count and DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-and-DAX/m-p/3049085#M104950</link>
    <description>&lt;P&gt;Hi Guys, I am facing issue counting the below rows where the condition is like:&lt;/P&gt;&lt;P&gt;Count number of rows for each group name where&lt;/P&gt;&lt;P&gt;Open date &amp;lt;= Date and resolve date is &amp;gt;= Date. So basically the count for 01-01-2020 would be 30 and for 02-01-2020 should also be 30 even though there is no open date or resolve date for that day.&lt;/P&gt;&lt;P&gt;I have created this table with required columns from the calendar and the fact table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your help in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 29 Jan 2023 20:01:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-01-29T20:01:48Z</dc:date>
    <item>
      <title>Count and DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-and-DAX/m-p/3049085#M104950</link>
      <description>&lt;P&gt;Hi Guys, I am facing issue counting the below rows where the condition is like:&lt;/P&gt;&lt;P&gt;Count number of rows for each group name where&lt;/P&gt;&lt;P&gt;Open date &amp;lt;= Date and resolve date is &amp;gt;= Date. So basically the count for 01-01-2020 would be 30 and for 02-01-2020 should also be 30 even though there is no open date or resolve date for that day.&lt;/P&gt;&lt;P&gt;I have created this table with required columns from the calendar and the fact table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your help in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jan 2023 20:01:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-and-DAX/m-p/3049085#M104950</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-29T20:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Count and DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-and-DAX/m-p/3049092#M104951</link>
      <description>&lt;P&gt;hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;unable to follow. Could you elaborate how you get 30 in your example date, say 01-01-2020?&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jan 2023 20:27:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-and-DAX/m-p/3049092#M104951</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-01-29T20:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Count and DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-and-DAX/m-p/3049099#M104954</link>
      <description>&lt;P&gt;So the count is basically 30 since the open date is equal to Date and resolve dates are greater than Date. So count of all the tickets falling as per above criteria is 30 for that group name.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jan 2023 20:53:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-and-DAX/m-p/3049099#M104954</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-29T20:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Count and DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-and-DAX/m-p/3049795#M105007</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;For a calculated column please use&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Count =
COUNTROWS (
    FILTER (
        CALCULATETABLE ( 'Table', ALLEXCEPT ( 'Table', 'Table'[FactTable.Group Name] ) ),
        'Table'[FactTable.Open Date] &amp;lt;= 'Table'[Date]
            &amp;amp;&amp;amp; 'Table'[FactTable.Resolve Rate] &amp;gt;= 'Table'[Date]
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;For a measure you can use&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Count =
COUNTROWS (
    FILTER (
        'Table',
        'Table'[FactTable.Open Date] &amp;lt;= 'Table'[Date]
            &amp;amp;&amp;amp; 'Table'[FactTable.Resolve Rate] &amp;gt;= 'Table'[Date]
    )
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 30 Jan 2023 08:17:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-and-DAX/m-p/3049795#M105007</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-01-30T08:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Count and DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-and-DAX/m-p/3051415#M105112</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I have created a simple sample, please refer to it to see if it helps you.&lt;/P&gt;
&lt;P&gt;Create measures.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
CALCULATE (
    COUNT('Table'[date]),
    FILTER (
        ALL ( 'Table' ),
        'Table'[date] = SELECTEDVALUE ( 'Table'[open date] )
            &amp;amp;&amp;amp; 'Table'[date] &amp;lt;= SELECTEDVALUE ( 'Table'[close date] )
            &amp;amp;&amp;amp; 'Table'[date] = SELECTEDVALUE ( 'Table'[date] )
    )
)
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure 2 = COUNTAX(FILTER(ALL('Table'),[Measure]&amp;lt;&amp;gt;BLANK()),[Measure])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;BR /&gt;Community Support Team _ Polly&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 01:25:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-and-DAX/m-p/3051415#M105112</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-31T01:25:01Z</dc:date>
    </item>
  </channel>
</rss>

