<?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: Measure that sums up a column based on the average value grouped by category in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-sums-up-a-column-based-on-the-average-value-grouped/m-p/2698318#M81522</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;SUMX (&lt;/P&gt;&lt;P&gt;SUMMARIZE (&lt;/P&gt;&lt;P&gt;TableName,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;TableName[Category],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"@Average", AVERAGE (&amp;nbsp;TableName[Value] )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[@Average]&lt;BR /&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Aug 2022 23:32:11 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-08-12T23:32:11Z</dc:date>
    <item>
      <title>Measure that sums up a column based on the average value grouped by category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-sums-up-a-column-based-on-the-average-value-grouped/m-p/2698307#M81521</link>
      <description>&lt;P&gt;Pretty straight forward. Any help is appreciated. Example below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Category&lt;/TD&gt;&lt;TD&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;a&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;a&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;b&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;b&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure's results: 30&lt;/P&gt;&lt;P&gt;Because a + b = 10 + 20 = 30&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 23:07:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-sums-up-a-column-based-on-the-average-value-grouped/m-p/2698307#M81521</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-12T23:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that sums up a column based on the average value grouped by category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-sums-up-a-column-based-on-the-average-value-grouped/m-p/2698318#M81522</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;SUMX (&lt;/P&gt;&lt;P&gt;SUMMARIZE (&lt;/P&gt;&lt;P&gt;TableName,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;TableName[Category],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"@Average", AVERAGE (&amp;nbsp;TableName[Value] )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[@Average]&lt;BR /&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 23:32:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-sums-up-a-column-based-on-the-average-value-grouped/m-p/2698318#M81522</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-12T23:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that sums up a column based on the average value grouped by category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-sums-up-a-column-based-on-the-average-value-grouped/m-p/2710674#M82316</link>
      <description>&lt;P&gt;One more question: How would I convert this into a COUNTX?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This worked beautifully. Thanks so much by the way.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 18:41:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-sums-up-a-column-based-on-the-average-value-grouped/m-p/2710674#M82316</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-18T18:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that sums up a column based on the average value grouped by category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-sums-up-a-column-based-on-the-average-value-grouped/m-p/2710711#M82318</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what do you want to count exactly?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 19:02:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-sums-up-a-column-based-on-the-average-value-grouped/m-p/2710711#M82318</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-18T19:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that sums up a column based on the average value grouped by category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-sums-up-a-column-based-on-the-average-value-grouped/m-p/2710716#M82320</link>
      <description>&lt;P&gt;I want to count the averages grouped by category&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 19:04:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-sums-up-a-column-based-on-the-average-value-grouped/m-p/2710716#M82320</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-18T19:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that sums up a column based on the average value grouped by category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-sums-up-a-column-based-on-the-average-value-grouped/m-p/2710724#M82321</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The number of averages would be the number of categories. what is different is the distinct number of averages. In this case you may try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=
COUNTROWS (
    DISTINCT (
        SELECTCOLUMNS (
            SUMMARIZE (
                TableName,
                TableName[Category],
                "@Average", AVERAGE ( TableName[Value] )
            ),
            "@@Average", [@Average]
        )
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 18 Aug 2022 19:09:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-sums-up-a-column-based-on-the-average-value-grouped/m-p/2710724#M82321</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-18T19:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that sums up a column based on the average value grouped by category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-sums-up-a-column-based-on-the-average-value-grouped/m-p/2710798#M82327</link>
      <description>&lt;P&gt;I would think that would work and I have come up with something similar. What I really need is the count of categories that change over a time period (see below). There would only be a count of 1 for the below snippet for 2022.26 column.&lt;/P&gt;&lt;P&gt;And then display them as a bar chart with x-axis being yyyy.ww&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, 18 Aug 2022 19:53:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-sums-up-a-column-based-on-the-average-value-grouped/m-p/2710798#M82327</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-18T19:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that sums up a column based on the average value grouped by category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-sums-up-a-column-based-on-the-average-value-grouped/m-p/2710807#M82328</link>
      <description>&lt;P&gt;sorry but still not able to pick up the idea.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 20:06:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-sums-up-a-column-based-on-the-average-value-grouped/m-p/2710807#M82328</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-18T20:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that sums up a column based on the average value grouped by category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-sums-up-a-column-based-on-the-average-value-grouped/m-p/2710886#M82335</link>
      <description>&lt;P&gt;the associated output of the measure would be this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Category&lt;/TD&gt;&lt;TD&gt;2022.24&lt;/TD&gt;&lt;TD&gt;2022.25&lt;/TD&gt;&lt;TD&gt;2022.26&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;BCP-06&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;BCP-08&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Counts if the category changes over time. The first screen shot from the previous reply is simply a count of the category.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 20:41:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-sums-up-a-column-based-on-the-average-value-grouped/m-p/2710886#M82335</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-18T20:41:56Z</dc:date>
    </item>
  </channel>
</rss>

