<?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: Average Calls per day, grouped by month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Calls-per-day-grouped-by-month/m-p/2579634#M73983</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use&lt;/P&gt;&lt;P&gt;DIVIDE ( TableName[&lt;SPAN&gt;Wholds], COUNTROWS ( 'VALUES ( "Date'[Date] ) ) )&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2022 08:34:22 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-06-15T08:34:22Z</dc:date>
    <item>
      <title>Average Calls per day, grouped by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Calls-per-day-grouped-by-month/m-p/2578730#M73927</link>
      <description>&lt;P&gt;How do you calculate the average of [wholds] in the month? Activity date is connected to a date table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Idealy, Id like to be able to know how many [wholds] a Sales rep made per day based off the number of days in the month.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially it would be the disctinct count of wholds in the month divided by the number of days in the month, and I could put it into a matrix/table that would know which month the calculation corresponds to.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Wholds&lt;/TD&gt;&lt;TD&gt;Activity Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;random numbers&lt;/TD&gt;&lt;TD&gt;04-10-22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;random numbers&lt;/TD&gt;&lt;TD&gt;04-12-22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;random numbers&lt;/TD&gt;&lt;TD&gt;03-06-22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;random numbers&lt;/TD&gt;&lt;TD&gt;02-28-22&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 22:56:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Calls-per-day-grouped-by-month/m-p/2578730#M73927</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-14T22:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Average Calls per day, grouped by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Calls-per-day-grouped-by-month/m-p/2579634#M73983</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use&lt;/P&gt;&lt;P&gt;DIVIDE ( TableName[&lt;SPAN&gt;Wholds], COUNTROWS ( 'VALUES ( "Date'[Date] ) ) )&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 08:34:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Calls-per-day-grouped-by-month/m-p/2579634#M73983</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-15T08:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Average Calls per day, grouped by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Calls-per-day-grouped-by-month/m-p/2585235#M74329</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check the formula.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Meaasure =
VAR count_wholds =
    CALCULATE (
        DISTINCTCOUNT ( 'Table'[Wholds] ),
        FILTER (
            ALLSELECTED ( 'Table' ),
            'Table'[Activity Date].[Year] = SELECTEDVALUE ( 'calendar'[Date].[Year] )
                &amp;amp;&amp;amp; 'Table'[Activity Date].[Month] = SELECTEDVALUE ( 'calendar'[Date].[Month] )
        )
    )
RETURN
    count_wholds / COUNTROWS ( 'calendar' )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jay&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 09:26:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Calls-per-day-grouped-by-month/m-p/2585235#M74329</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-17T09:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Average Calls per day, grouped by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Calls-per-day-grouped-by-month/m-p/2586302#M74386</link>
      <description>&lt;P&gt;It did not work, I take it 'calendar' is the calendar table I have attached to the activity date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 19:13:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Calls-per-day-grouped-by-month/m-p/2586302#M74386</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-17T19:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Average Calls per day, grouped by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Calls-per-day-grouped-by-month/m-p/2586305#M74387</link>
      <description>&lt;P&gt;This worked if the columns in the matrix are from the Date/Calendar table used and not from the Date from the Datatable.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 19:14:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Calls-per-day-grouped-by-month/m-p/2586305#M74387</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-17T19:14:07Z</dc:date>
    </item>
  </channel>
</rss>

