<?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: Counting number of responses per calendar month for three response types in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-responses-per-calendar-month-for-three/m-p/2153549#M49668</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I answered based on your initial question. Now it seems you have a different issue. ,So, you need to show a stacked column chart for the count of each response and to show three average lines for each of them?&lt;/P&gt;</description>
    <pubDate>Mon, 25 Oct 2021 12:07:21 GMT</pubDate>
    <dc:creator>Fowmy</dc:creator>
    <dc:date>2021-10-25T12:07:21Z</dc:date>
    <item>
      <title>Counting number of responses per calendar month for three response types</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-responses-per-calendar-month-for-three/m-p/2153455#M49665</link>
      <description>&lt;P&gt;Hi guys, I have a data set from which I'd like to count the number of responses per calendar month but divided into three different response types (agree, disagree and neutral). So my end result would look something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;My source data table looks like this:&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date Submitted&lt;/TD&gt;&lt;TD&gt;Response&lt;/TD&gt;&lt;TD&gt;Date Submitted (bins)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;16/04/2021 13:00&lt;/TD&gt;&lt;TD&gt;Agree&lt;/TD&gt;&lt;TD&gt;Apr-21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;18/09/2020 11:37&lt;/TD&gt;&lt;TD&gt;Agree&lt;/TD&gt;&lt;TD&gt;Sep-20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;16/04/2021 13:46&lt;/TD&gt;&lt;TD&gt;Agree&lt;/TD&gt;&lt;TD&gt;Apr-21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;18/09/2020 11:17&lt;/TD&gt;&lt;TD&gt;Agree&lt;/TD&gt;&lt;TD&gt;Sep-20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;16/04/2021 14:58&lt;/TD&gt;&lt;TD&gt;Agree&lt;/TD&gt;&lt;TD&gt;Apr-21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;06/04/2021 08:50&lt;/TD&gt;&lt;TD&gt;Agree&lt;/TD&gt;&lt;TD&gt;Apr-21&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm quite a beginner in PowerBI so I'm not sure if this can be achieved using calculated columns or if I need to create a calculated table from my data? Thanks for any guidance!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 11:32:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-responses-per-calendar-month-for-three/m-p/2153455#M49665</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-25T11:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Counting number of responses per calendar month for three response types</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-responses-per-calendar-month-for-three/m-p/2153474#M49666</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You can create three measures, I created for Agree below, do the same for the rest two. Replace the Table Name with yours&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Agree = 
CALCULATE (
    COUNTROWS ( TableName ),
    TableName[Response] = "Agree"
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 25 Oct 2021 11:35:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-responses-per-calendar-month-for-three/m-p/2153474#M49666</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2021-10-25T11:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Counting number of responses per calendar month for three response types</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-responses-per-calendar-month-for-three/m-p/2153531#M49667</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt;&amp;nbsp;, thank you for the reply. The problem with using measures is that I'm trying to show an average line for each response type in a line and stacked column chart (see below) and it doesn't seem that you can calculate average automatically from the measure in the graph settings?&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;&amp;nbsp;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 11:56:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-responses-per-calendar-month-for-three/m-p/2153531#M49667</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-25T11:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Counting number of responses per calendar month for three response types</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-responses-per-calendar-month-for-three/m-p/2153549#M49668</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I answered based on your initial question. Now it seems you have a different issue. ,So, you need to show a stacked column chart for the count of each response and to show three average lines for each of them?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 12:07:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-responses-per-calendar-month-for-three/m-p/2153549#M49668</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2021-10-25T12:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Counting number of responses per calendar month for three response types</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-responses-per-calendar-month-for-three/m-p/2153554#M49669</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt;&amp;nbsp;, yes that is correct. Apologies, I should've added that detail in my initial question. Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 12:08:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-responses-per-calendar-month-for-three/m-p/2153554#M49669</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-25T12:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Counting number of responses per calendar month for three response types</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-responses-per-calendar-month-for-three/m-p/2153562#M49671</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You are using a Line and Stacked Column Chart here, you can create three more measures to calculate the average and add them in the Line Values Section. You can use the [Agree] measure that you created above within the Calculate below.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Agree Avg = 
CALCULATE(
    [Agree],
    ALLSELECTED(TableName[Date Submitted (Bin)]),
    TableName[Response] = "Agree"
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 12:18:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-responses-per-calendar-month-for-three/m-p/2153562#M49671</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2021-10-25T12:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Counting number of responses per calendar month for three response types</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-responses-per-calendar-month-for-three/m-p/2153578#M49672</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a new measure for Agree Avg as you described and added it to the line values but this line seems to be indicating the total agree responses per month rather than the average? Perhap it's me not being clear again, the average I'm looking for is the average across all the months, therefore as new months are added to the model the average line for each response type is adjusted. Thank you for your help so far&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 12:37:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-responses-per-calendar-month-for-three/m-p/2153578#M49672</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-25T12:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Counting number of responses per calendar month for three response types</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-responses-per-calendar-month-for-three/m-p/2153679#M49676</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am not sure about your data model, so I created a dummy data set based on your sample and did the following. Please check the attached file.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 13:25:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-responses-per-calendar-month-for-three/m-p/2153679#M49676</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2021-10-25T13:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Counting number of responses per calendar month for three response types</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-responses-per-calendar-month-for-three/m-p/2155492#M49768</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt;&amp;nbsp;, thank you for sending the file. I noticed you used the AVERAGEX function to calculate the averages. That did the trick, thanks for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 09:39:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-responses-per-calendar-month-for-three/m-p/2155492#M49768</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-26T09:39:34Z</dc:date>
    </item>
  </channel>
</rss>

