<?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 rows where date column is 1st day of next month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-where-date-column-is-1st-day-of-next-month/m-p/2597484#M74992</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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;column due_date containts the date 1st of july 2022 which is what I want to count.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was hoping that the measure will return a count of all those rows where the due_date is 1st of july 2022&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jun 2022 11:15:06 GMT</pubDate>
    <dc:creator>georgec96</dc:creator>
    <dc:date>2022-06-23T11:15:06Z</dc:date>
    <item>
      <title>Count rows where date column is 1st day of next month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-where-date-column-is-1st-day-of-next-month/m-p/2593864#M74796</link>
      <description>&lt;P&gt;Hi all, im trying to create a measure that would count all rows where the column date is 1st day of next month however im getting an error when using the CALCULATE function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;A function "CALCULATE" has been used in a true or false expression that is used as a table filter expression. This is not allowed."&lt;/SPAN&gt;&lt;/P&gt;&lt;H1&gt;&amp;nbsp;&lt;/H1&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 06:28:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-where-date-column-is-1st-day-of-next-month/m-p/2593864#M74796</guid>
      <dc:creator>georgec96</dc:creator>
      <dc:date>2022-06-22T06:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows where date column is 1st day of next month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-where-date-column-is-1st-day-of-next-month/m-p/2593913#M74801</link>
      <description>&lt;P&gt;@Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="357242" data-lia-user-login="georgec96" class="lia-mention lia-mention-user"&gt;georgec96&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what code did you use?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 06:46:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-where-date-column-is-1st-day-of-next-month/m-p/2593913#M74801</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-22T06:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows where date column is 1st day of next month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-where-date-column-is-1st-day-of-next-month/m-p/2596813#M74968</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&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;&amp;nbsp; I have used the following formula&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DK orders Left = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ebs_lcl_open_orders[oracle_order_number]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;ebs_lcl_open_orders[due_date]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;NEXTMONTH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ebs_lcl_open_lines[order_due_date]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 23 Jun 2022 07:46:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-where-date-column-is-1st-day-of-next-month/m-p/2596813#M74968</guid>
      <dc:creator>georgec96</dc:creator>
      <dc:date>2022-06-23T07:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows where date column is 1st day of next month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-where-date-column-is-1st-day-of-next-month/m-p/2596930#M74972</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="357242" data-lia-user-login="georgec96" class="lia-mention lia-mention-user"&gt;georgec96&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please try&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;DK orders Left =
VAR NextMonth =
    EOMONTH ( ebs_lcl_open_lines[order_due_date], 0 ) + 1
RETURN
    CALCULATE (
        COUNT ( ebs_lcl_open_orders[oracle_order_number] ),
        ebs_lcl_open_orders[due_date] = NextMonth
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 23 Jun 2022 08:16:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-where-date-column-is-1st-day-of-next-month/m-p/2596930#M74972</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-23T08:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows where date column is 1st day of next month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-where-date-column-is-1st-day-of-next-month/m-p/2597210#M74982</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I write this as a measure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It won't let me reference the datecolumn when i try.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 09:30:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-where-date-column-is-1st-day-of-next-month/m-p/2597210#M74982</guid>
      <dc:creator>georgec96</dc:creator>
      <dc:date>2022-06-23T09:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows where date column is 1st day of next month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-where-date-column-is-1st-day-of-next-month/m-p/2597318#M74984</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="357242" data-lia-user-login="georgec96" class="lia-mention lia-mention-user"&gt;georgec96&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Yes you can&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;DK orders Left =
VAR NextMonth =
    EOMONTH ( MAX ( ebs_lcl_open_lines[order_due_date] ), 0 ) + 1
RETURN
    CALCULATE (
        COUNT ( ebs_lcl_open_orders[oracle_order_number] ),
        ebs_lcl_open_orders[due_date] = NextMonth
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 23 Jun 2022 09:56:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-where-date-column-is-1st-day-of-next-month/m-p/2597318#M74984</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-23T09:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows where date column is 1st day of next month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-where-date-column-is-1st-day-of-next-month/m-p/2597392#M74985</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&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;&amp;nbsp;, thanks for your reply&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However my measure is returning a blank value&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;</description>
      <pubDate>Thu, 23 Jun 2022 10:19:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-where-date-column-is-1st-day-of-next-month/m-p/2597392#M74985</guid>
      <dc:creator>georgec96</dc:creator>
      <dc:date>2022-06-23T10:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows where date column is 1st day of next month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-where-date-column-is-1st-day-of-next-month/m-p/2597395#M74987</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="357242" data-lia-user-login="georgec96" class="lia-mention lia-mention-user"&gt;georgec96&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;How does your data look like?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 10:20:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-where-date-column-is-1st-day-of-next-month/m-p/2597395#M74987</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-23T10:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows where date column is 1st day of next month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-where-date-column-is-1st-day-of-next-month/m-p/2597402#M74988</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;&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;</description>
      <pubDate>Thu, 23 Jun 2022 10:22:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-where-date-column-is-1st-day-of-next-month/m-p/2597402#M74988</guid>
      <dc:creator>georgec96</dc:creator>
      <dc:date>2022-06-23T10:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows where date column is 1st day of next month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-where-date-column-is-1st-day-of-next-month/m-p/2597436#M74991</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="357242" data-lia-user-login="georgec96" class="lia-mention lia-mention-user"&gt;georgec96&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes as there is no data for next month. You need to slice by or select date&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 10:48:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-where-date-column-is-1st-day-of-next-month/m-p/2597436#M74991</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-23T10:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows where date column is 1st day of next month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-where-date-column-is-1st-day-of-next-month/m-p/2597484#M74992</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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;column due_date containts the date 1st of july 2022 which is what I want to count.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was hoping that the measure will return a count of all those rows where the due_date is 1st of july 2022&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 11:15:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-where-date-column-is-1st-day-of-next-month/m-p/2597484#M74992</guid>
      <dc:creator>georgec96</dc:creator>
      <dc:date>2022-06-23T11:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows where date column is 1st day of next month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-where-date-column-is-1st-day-of-next-month/m-p/2597505#M74994</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="357242" data-lia-user-login="georgec96" class="lia-mention lia-mention-user"&gt;georgec96&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok then let's return nextmonth&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;DK orders Left =
VAR NextMonth =
    EOMONTH ( MAX ( ebs_lcl_open_lines[order_due_date] ), 0 ) + 1
VAR Result =
    CALCULATE (
        COUNT ( ebs_lcl_open_orders[oracle_order_number] ),
        ebs_lcl_open_orders[due_date] = NextMonth
    )
RETURN
    NextMonth&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 23 Jun 2022 11:23:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-where-date-column-is-1st-day-of-next-month/m-p/2597505#M74994</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-23T11:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows where date column is 1st day of next month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-where-date-column-is-1st-day-of-next-month/m-p/2622127#M76415</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="357242" data-lia-user-login="georgec96" class="lia-mention lia-mention-user"&gt;georgec96&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;
&lt;P style="background: white;"&gt;&lt;SPAN&gt;I just want to confirm if you resolved this issue? If yes,&amp;nbsp;&lt;U&gt;you can accept the answer helpful as the solution&lt;/U&gt;&amp;nbsp;&lt;STRONG&gt;or&lt;/STRONG&gt;&amp;nbsp;&lt;U&gt;share you method and accept it as solution&lt;/U&gt;, thanks for your contribution to improve Power BI.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;If you need more help, please let me know.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN&gt;Community Support Team _Tang&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 10:13:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-where-date-column-is-1st-day-of-next-month/m-p/2622127#M76415</guid>
      <dc:creator>v-xiaotang</dc:creator>
      <dc:date>2022-07-06T10:13:53Z</dc:date>
    </item>
  </channel>
</rss>

