<?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: Sum of average by month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-average-by-month/m-p/733263#M1877</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thank you very much.&lt;/P&gt;&lt;P&gt;It's exactly what i want; it's nice.&lt;/P&gt;&lt;P&gt;Thanks to all people who has helping me too.&lt;/P&gt;&lt;P&gt;Have a good day&lt;/P&gt;&lt;P&gt;:smileyhappy:&lt;/P&gt;</description>
    <pubDate>Sat, 06 Jul 2019 14:11:14 GMT</pubDate>
    <dc:creator>Lefuneste57</dc:creator>
    <dc:date>2019-07-06T14:11:14Z</dc:date>
    <item>
      <title>Sum of average by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-average-by-month/m-p/731069#M1766</link>
      <description>&lt;P&gt;Hi, sorry for my english, i'm french.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i have this table :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For each month, i calculate the average (row :moyenne mensuelle) from salaire so i have this :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will have the sum of average but the systeme give me this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and i want this :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the sum of each average por month..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me please and give to me the good Dax formule ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 16:00:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-average-by-month/m-p/731069#M1766</guid>
      <dc:creator>Lefuneste57</dc:creator>
      <dc:date>2019-07-03T16:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of average by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-average-by-month/m-p/732053#M1808</link>
      <description>&lt;P&gt;What do you think about this?&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, 04 Jul 2019 18:16:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-average-by-month/m-p/732053#M1808</guid>
      <dc:creator>avanderschilden</dc:creator>
      <dc:date>2019-07-04T18:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of average by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-average-by-month/m-p/732385#M1825</link>
      <description>&lt;P&gt;&amp;nbsp;Hi, thanks for answers but it's no good..&lt;/P&gt;&lt;P&gt;My problem is that i don't have the same number of personn each team.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I have make 5 person in team 1 and 4 person in team 2; look like :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;So the average value each month is :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The result with your Dax formule give :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But i want this result :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thank for helping.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2019 07:09:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-average-by-month/m-p/732385#M1825</guid>
      <dc:creator>Lefuneste57</dc:creator>
      <dc:date>2019-07-05T07:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of average by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-average-by-month/m-p/732430#M1826</link>
      <description>&lt;P&gt;And what do you think about this result?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2019 07:36:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-average-by-month/m-p/732430#M1826</guid>
      <dc:creator>avanderschilden</dc:creator>
      <dc:date>2019-07-05T07:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of average by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-average-by-month/m-p/732542#M1835</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="144365" data-lia-user-login="avanderschilden" class="lia-mention lia-mention-user"&gt;avanderschilden&lt;/a&gt;&amp;nbsp;: Mate, please note that you SHOULD NEVER use SUMMARIZE to do aggregations. This is well known in the DAX world. The SUMMARIZE function is very bad for performance and its behaviour is so complex that it's better to steer clear of it if you want to know what your formula calculates. Its only good use is for giving you distinct combinations of rows &lt;STRONG&gt;AND NOTHING ELSE&lt;/STRONG&gt;. If you want to know more on this, please go to &lt;A href="http://www.sqlbi.com" target="_blank"&gt;www.sqlbi.com&lt;/A&gt; and find the right articles about it by the two gurus, Alberto Ferrari and Marco Russo. Instead of using SUMMARIZE to do summaries, you should use a combination of SUMMARIZE+ADDCOLUMNS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2019 09:03:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-average-by-month/m-p/732542#M1835</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-05T09:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of average by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-average-by-month/m-p/732555#M1837</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp; thanks for the info. I never had performance issues with SUMMARIZE the way I use it, and I don't see any complexity in it. However, I will check out the article you advice.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2019 09:13:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-average-by-month/m-p/732555#M1837</guid>
      <dc:creator>avanderschilden</dc:creator>
      <dc:date>2019-07-05T09:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of average by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-average-by-month/m-p/732681#M1844</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so, can you telle me what is the new Dax formule for me if we used&amp;nbsp;&lt;SPAN&gt;SUMMARIZE+ADDCOLUMNS ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2019 11:35:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-average-by-month/m-p/732681#M1844</guid>
      <dc:creator>Lefuneste57</dc:creator>
      <dc:date>2019-07-05T11:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of average by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-average-by-month/m-p/732689#M1846</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This would be the new measure with better performance;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;New Measure =
AVERAGEX (
    SUMMARIZE (
        ADDCOLUMNS (
            SUMMARIZE ( 'Table', 'Table'[Year], 'Table'[Month], 'Table'[Team] ),
            "Average", CALCULATE ( AVERAGEX ( 'Table', 'Table'[Salary] ) )
        ),
        'Table'[Year],
        'Table'[Team],
        "Average2", AVERAGEX (
            ADDCOLUMNS (
                SUMMARIZE ( 'Table', 'Table'[Year], 'Table'[Month], 'Table'[Team] ),
                "Average", CALCULATE ( AVERAGEX ( 'Table', 'Table'[Salary] ) )
            ),
            [Average]
        )
    ),
    [Average2]
)&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Jul 2019 11:48:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-average-by-month/m-p/732689#M1846</guid>
      <dc:creator>avanderschilden</dc:creator>
      <dc:date>2019-07-05T11:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of average by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-average-by-month/m-p/732732#M1852</link>
      <description>&lt;P&gt;Here's a measure that does the same as the previous one but without the bad use of SUMMARIZE (which is still present in the above measure):&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;[Avg of Avg] =
VAR __DataTableOfAverages =
    ADDCOLUMNS (
        SUMMARIZE (
        	'DataTable',
        	'DataTable'[Year],
        	'DataTable'[Month],
        	'DataTable'[Team]
        ),
        "Average", 
        	CALCULATE (
        		AVERAGEX (
        			'DataTable', 
        			'DataTable'[Salary]
        		) 
        	)
    )
VAR __DataTableOfAveragesOverAverages =
	ADDCOLUMNS(
		SUMMARIZE(
			__DataTableOfAverages,
                        'DataTable'[Year],
                        'DataTable'[Team]
		),
		"Average2",
			CALCULATE(
				AVERAGEX(
					__DataTableOfAverages,
					[Average]
				)
			)
	)
var __finalAverage =
    AVERAGEX (
        __DataTableOfAveragesOverAverages,
        [Average2]
    )
RETURN
	__finalAverage&lt;/PRE&gt;&lt;P&gt;You might find this code more easily understandable as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2019 12:40:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-average-by-month/m-p/732732#M1852</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-05T12:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of average by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-average-by-month/m-p/732890#M1859</link>
      <description>&lt;P&gt;Thank you all,&lt;/P&gt;&lt;P&gt;I have a new row that named "Nature", this is the type of Salary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So can you tell me the new Dax code to have this :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;And then :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;So for Each Team I must calculate the average per Person per Month Then&amp;nbsp;&lt;/P&gt;&lt;P&gt;I must calculate the average per Team per Month&lt;/P&gt;&lt;P&gt;I must claculate the average per Team per Year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for helping.&lt;/P&gt;&lt;P&gt;:smileyhappy:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2019 15:18:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-average-by-month/m-p/732890#M1859</guid>
      <dc:creator>Lefuneste57</dc:creator>
      <dc:date>2019-07-05T15:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of average by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-average-by-month/m-p/733220#M1870</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Avg of Avg = 
VAR __avgPerYearMonthTeamPerson =
    ADDCOLUMNS (
        SUMMARIZE (
        	'DataTable',
        	'DataTable'[Year],
        	'DataTable'[Month],
        	'DataTable'[Team],
                'DataTable'[Person]
        ),
        "Average", 
        	CALCULATE (
        		AVERAGEX (
        			'DataTable', 
        			'DataTable'[Salary]
        		) 
        	)
    )
VAR __avgPerYearMonthTeam =
	ADDCOLUMNS(
		SUMMARIZE(
			__avgPerYearMonthTeamPerson,
                       'DataTable'[Year],
                       'DataTable'[Month],
                       'DataTable'[Team]
		),
		"Average2",
			CALCULATE(
				AVERAGEX(
					__avgPerYearMonthTeamPerson,
					[Average]
				)
			)
	)
var __avgPerYearTeam =
	ADDCOLUMNS(
		SUMMARIZE(
			__avgPerYearMonthTeam,
                       'DataTable'[Year],
                       'DataTable'[Team]
		),
		"Average3",
			CALCULATE(
				AVERAGEX(
					__avgPerYearMonthTeam,
					[Average2]
				)
			)
	)
var __avgPerTeam =
	ADDCOLUMNS(
		SUMMARIZE(
			__avgPerYearTeam,
                        'DataTable'[Team]
		),
		"Average4",
			CALCULATE(
				AVERAGEX(
					__avgPerYearTeam,
					[Average3]
				)
			)
	)
var __avg =
    AVERAGEX(
        __avgPerTeam,
        [Average4]
    )
RETURN
	__avg&lt;/PRE&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jul 2019 09:56:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-average-by-month/m-p/733220#M1870</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-06T09:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of average by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-average-by-month/m-p/733263#M1877</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thank you very much.&lt;/P&gt;&lt;P&gt;It's exactly what i want; it's nice.&lt;/P&gt;&lt;P&gt;Thanks to all people who has helping me too.&lt;/P&gt;&lt;P&gt;Have a good day&lt;/P&gt;&lt;P&gt;:smileyhappy:&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jul 2019 14:11:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-average-by-month/m-p/733263#M1877</guid>
      <dc:creator>Lefuneste57</dc:creator>
      <dc:date>2019-07-06T14:11:14Z</dc:date>
    </item>
  </channel>
</rss>

