<?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 number of rows that were active each month and add to summary table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-rows-that-were-active-each-month-and-add-to/m-p/3822280#M149482</link>
    <description>&lt;P&gt;I have two tables one with a row for each month of the year, the other is the table of project members with start dates and end dates. I need to add a column in the first table to count how many active project members there were each month.&lt;/P&gt;&lt;P&gt;I tried this:&lt;/P&gt;&lt;P&gt;# Members = COUNTAX('7 Expert Panel data',and(('7 Expert Panel data'[EOM Start]&amp;lt;='0 Summary table'[Month end]),(OR(ISBLANK([EOM End]),('7 Expert Panel data'[EOM End]&amp;gt;'0 Summary table'[Month end])))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But to no avail! Please help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Apr 2024 08:30:02 GMT</pubDate>
    <dc:creator>AndreaA4S</dc:creator>
    <dc:date>2024-04-09T08:30:02Z</dc:date>
    <item>
      <title>Count number of rows that were active each month and add to summary table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-rows-that-were-active-each-month-and-add-to/m-p/3822280#M149482</link>
      <description>&lt;P&gt;I have two tables one with a row for each month of the year, the other is the table of project members with start dates and end dates. I need to add a column in the first table to count how many active project members there were each month.&lt;/P&gt;&lt;P&gt;I tried this:&lt;/P&gt;&lt;P&gt;# Members = COUNTAX('7 Expert Panel data',and(('7 Expert Panel data'[EOM Start]&amp;lt;='0 Summary table'[Month end]),(OR(ISBLANK([EOM End]),('7 Expert Panel data'[EOM End]&amp;gt;'0 Summary table'[Month end])))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But to no avail! Please help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 08:30:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-rows-that-were-active-each-month-and-add-to/m-p/3822280#M149482</guid>
      <dc:creator>AndreaA4S</dc:creator>
      <dc:date>2024-04-09T08:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of rows that were active each month and add to summary table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-rows-that-were-active-each-month-and-add-to/m-p/3824013#M149541</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The syntax should work. plz share sample table schema and the dax. alternetive is to use userrelationship function to create relationship with two date column.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 14:15:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-rows-that-were-active-each-month-and-add-to/m-p/3824013#M149541</guid>
      <dc:creator>Rupak_bi</dc:creator>
      <dc:date>2024-04-09T14:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of rows that were active each month and add to summary table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-rows-that-were-active-each-month-and-add-to/m-p/3826901#M149626</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="720782" data-lia-user-login="AndreaA4S" class="lia-mention lia-mention-user"&gt;AndreaA4S&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Iterate through each row in the summary table.&lt;/LI&gt;&lt;LI&gt;For each row, count the number of project members from the project members table whose start date is before or equal to the current month end date in the summary table, and either have a blank end date or their end date is after the current month end date.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Here's how you can do it in Power BI using DAX:&lt;BR /&gt;Active Members =&lt;BR /&gt;VAR CurrentMonthEnd = '0 Summary table'[Month end]&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE(&lt;BR /&gt;COUNTROWS('7 Expert Panel data'),&lt;BR /&gt;FILTER(&lt;BR /&gt;'7 Expert Panel data',&lt;BR /&gt;'7 Expert Panel data'[EOM Start] &amp;lt;= CurrentMonthEnd &amp;amp;&amp;amp;&lt;BR /&gt;(ISBLANK('7 Expert Panel data'[EOM End]) || '7 Expert Panel data'[EOM End] &amp;gt; CurrentMonthEnd)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 11:04:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-rows-that-were-active-each-month-and-add-to/m-p/3826901#M149626</guid>
      <dc:creator>johnbasha33</dc:creator>
      <dc:date>2024-04-10T11:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of rows that were active each month and add to summary table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-rows-that-were-active-each-month-and-add-to/m-p/3829910#M149741</link>
      <description>Amazing thank you so much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Thu, 11 Apr 2024 07:41:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-rows-that-were-active-each-month-and-add-to/m-p/3829910#M149741</guid>
      <dc:creator>AndreaA4S</dc:creator>
      <dc:date>2024-04-11T07:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of rows that were active each month and add to summary table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-rows-that-were-active-each-month-and-add-to/m-p/3831265#M149793</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="720782" data-lia-user-login="AndreaA4S" class="lia-mention lia-mention-user"&gt;AndreaA4S&lt;/a&gt;&amp;nbsp; glad that it worked out for you. Keep exploring this forum for other issues.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" color="#993300"&gt;Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 14:42:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-rows-that-were-active-each-month-and-add-to/m-p/3831265#M149793</guid>
      <dc:creator>johnbasha33</dc:creator>
      <dc:date>2024-04-11T14:42:57Z</dc:date>
    </item>
  </channel>
</rss>

