<?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: Count by month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-by-month/m-p/2896154#M94166</link>
    <description>&lt;P&gt;Hey, try to create a column in PQ with dates between Start and End date, then link your calendar table with this new created column, your model will be bigger but you will have a record for each day and you can count them afterwards.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Nov 2022 19:45:25 GMT</pubDate>
    <dc:creator>Sandielly</dc:creator>
    <dc:date>2022-11-09T19:45:25Z</dc:date>
    <item>
      <title>Count by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-by-month/m-p/2896051#M94154</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have data like below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a visual on PowerBI to show the count of cases monthly, including opening balance (cases that opened in last month but not yet closed), added (cases that newly added in this month), close (cases that closed in this month), and closing balance (cases that still not closed by the end of this month). The outcome would be look like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just start learning DAX and have trouble of finding the correct functions to achieve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I figured out of getting opening balance and added by using below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Opening Balance = CALCULATE(DISTINCTCOUNT('Table'[Case #]), PARALLELPERIOD('Table'[Date Reported].[Date], -1, MONTH))&lt;/P&gt;&lt;P&gt;Added = CALCULATE(DISTINCTCOUNT('Table'[Case #]), PARALLELPERIOD('Table'[Date Reported].[Date], 0, MONTH))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I cannot get the Closed and Closing Balance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the help in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 18:43:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-by-month/m-p/2896051#M94154</guid>
      <dc:creator>raymondchen</dc:creator>
      <dc:date>2022-11-09T18:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Count by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-by-month/m-p/2896154#M94166</link>
      <description>&lt;P&gt;Hey, try to create a column in PQ with dates between Start and End date, then link your calendar table with this new created column, your model will be bigger but you will have a record for each day and you can count them afterwards.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 19:45:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-by-month/m-p/2896154#M94166</guid>
      <dc:creator>Sandielly</dc:creator>
      <dc:date>2022-11-09T19:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Count by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-by-month/m-p/2897903#M94290</link>
      <description>&lt;P&gt;Sorry I am not quite understand. What do you mean by&amp;nbsp;&lt;SPAN&gt;Start and End date? And how to get the count by linking to calendar table?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 15:45:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-by-month/m-p/2897903#M94290</guid>
      <dc:creator>raymondchen</dc:creator>
      <dc:date>2022-11-10T15:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Count by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-by-month/m-p/2920549#M95765</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="469579" data-lia-user-login="raymondchen" class="lia-mention lia-mention-user"&gt;raymondchen&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like this?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please refer to my pbix file for better understanding.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Community Support Team&amp;nbsp;&lt;STRONG&gt;Selina&amp;nbsp;zhu&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 06:23:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-by-month/m-p/2920549#M95765</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-22T06:23:08Z</dc:date>
    </item>
  </channel>
</rss>

