<?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 Dealing with Measure Totals in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/63376#M56</link>
    <description>&lt;P&gt;This one has come up quite a bit recently. The issue surrounds using Measures in Table visualizations with a Total row. The complaint is that the "Total" row is "wrong" for the measure. Technically, the total row is correct for the measure, it's just not what most people expect. What people expect is for the "Total" to display the sum of the values in the column. Measures do not do this. Measures respect the context of the Total row and is calculated within that context. Therefore, a Measure used in a column in a table visualization will likely have an unexpected value in the Total column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are a couple ways of fixing this. The easiest is to turn off the Total row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assuming that is not what you want, you can use the HASONEFILTER function to get around this issue. However, the ultimate solution will depend on how your measure is calculated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, given the following data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Year Amount&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Year1&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Year2&lt;/TD&gt;&lt;TD&gt;1500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Year3&lt;/TD&gt;&lt;TD&gt;2000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Year4&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Year5&lt;/TD&gt;&lt;TD&gt;800&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We wish to find the total extra Amount spent above 1000 for each year. If the amount is not over 1000, we wish to display 0. To this end, we create a measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;MyMeasure = IF(SUM(Table[Amount])&amp;lt;1000,0,SUM(Table[Amount])-1000) &lt;/PRE&gt;&lt;P&gt;Adding this to a Table visualization along with Year, we get the correct answer for each of the rows, but the Total line displays 3900, not 1500 as we would expect. The figure 3900 is calculated because the Measure is performing its calculation for ALL of the rows in the table, so the calculation is (500 + 1500 + 2000 + 100 + 800) - 1000 = 3900.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Correct, but not what was expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get around this problem, use HASONEFILTER to calculate the Measure one way within a row context and another way within the Total row context, such as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;MyMeasure2 = IF(HASONEFILTER(Table[Year]),&lt;BR /&gt;IF(SUM(Table[Amount])&amp;lt;1000,0,SUM(Table[Amount])-1000),&lt;BR /&gt;SUMX(FILTER(Table,[Amount]&amp;gt;1000),[Amount]-1000)&lt;BR /&gt;)&lt;/PRE&gt;&lt;P&gt;Breaking this down, we essentially wrap our original measure in an IF statement that has the HASONEFILTER function as the logical test. If HASONEFILTER equals true, we calculate our Measure as before. However, if HASONEFILTER is false, we know that we have a Total row and we calculate our Measure a different way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Aug 2016 19:18:59 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2016-08-29T19:18:59Z</dc:date>
    <item>
      <title>Dealing with Measure Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/63376#M56</link>
      <description>&lt;P&gt;This one has come up quite a bit recently. The issue surrounds using Measures in Table visualizations with a Total row. The complaint is that the "Total" row is "wrong" for the measure. Technically, the total row is correct for the measure, it's just not what most people expect. What people expect is for the "Total" to display the sum of the values in the column. Measures do not do this. Measures respect the context of the Total row and is calculated within that context. Therefore, a Measure used in a column in a table visualization will likely have an unexpected value in the Total column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are a couple ways of fixing this. The easiest is to turn off the Total row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assuming that is not what you want, you can use the HASONEFILTER function to get around this issue. However, the ultimate solution will depend on how your measure is calculated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, given the following data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Year Amount&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Year1&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Year2&lt;/TD&gt;&lt;TD&gt;1500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Year3&lt;/TD&gt;&lt;TD&gt;2000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Year4&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Year5&lt;/TD&gt;&lt;TD&gt;800&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We wish to find the total extra Amount spent above 1000 for each year. If the amount is not over 1000, we wish to display 0. To this end, we create a measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;MyMeasure = IF(SUM(Table[Amount])&amp;lt;1000,0,SUM(Table[Amount])-1000) &lt;/PRE&gt;&lt;P&gt;Adding this to a Table visualization along with Year, we get the correct answer for each of the rows, but the Total line displays 3900, not 1500 as we would expect. The figure 3900 is calculated because the Measure is performing its calculation for ALL of the rows in the table, so the calculation is (500 + 1500 + 2000 + 100 + 800) - 1000 = 3900.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Correct, but not what was expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get around this problem, use HASONEFILTER to calculate the Measure one way within a row context and another way within the Total row context, such as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;MyMeasure2 = IF(HASONEFILTER(Table[Year]),&lt;BR /&gt;IF(SUM(Table[Amount])&amp;lt;1000,0,SUM(Table[Amount])-1000),&lt;BR /&gt;SUMX(FILTER(Table,[Amount]&amp;gt;1000),[Amount]-1000)&lt;BR /&gt;)&lt;/PRE&gt;&lt;P&gt;Breaking this down, we essentially wrap our original measure in an IF statement that has the HASONEFILTER function as the logical test. If HASONEFILTER equals true, we calculate our Measure as before. However, if HASONEFILTER is false, we know that we have a Total row and we calculate our Measure a different way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 19:18:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/63376#M56</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2016-08-29T19:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Measure Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/63572#M57</link>
      <description>&lt;P&gt;I tend to avoid measures that are designed with a specific visualization in mind, but indeed, in the case of non-standard totals it's inevitable. In your example, the assumption is that the years are the identifiers for the rows in the table. When an additional level, e.g. Month, is added, then the behaviour of the measure will be - different.&lt;/P&gt;&lt;P&gt;But this aside, the part of your formula for the total would work just as well on the detail rows when iterating over VALUES(Table[Year] instead of Table itself:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;MyMeasure3 = SUMX(FILTER(VALUES(Table[Year]),[Amount]&amp;gt;1000),[Amount]-1000)&lt;/PRE&gt;&lt;P&gt;On a detail row, VALUES(Table[Year]) would contain only one row and the filtered table is empty when [Amount]&amp;lt;=1000. This means that rows for years with [Amount] lower than 1000 will have a blank value. If you do want to have 0 instead of blank, just add 0 to the result:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;MyMeasure3 = SUMX(FILTER(VALUES(Table[Year]),[Amount]&amp;gt;1000),[Amount]-1000) + 0&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Aug 2016 07:36:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/63572#M57</guid>
      <dc:creator>Michiel</dc:creator>
      <dc:date>2016-08-30T07:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Measure Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/65248#M68</link>
      <description>&lt;P&gt;This was quite informative, thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2016 05:48:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/65248#M68</guid>
      <dc:creator>quratzafar</dc:creator>
      <dc:date>2016-09-05T05:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Measure Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/417851#M320</link>
      <description>&lt;P&gt;Great post. It give insight into why PBI is the way it is. My attempt to apply the knowledge above is failing.&amp;nbsp;This&amp;nbsp;matrix has muliple at a page level so the HASONEFILTER is not working out?&amp;nbsp;The HASONEVALUE is not working out for me either.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here is the measure. Edit tips appreaciated.&amp;nbsp;(Credit to &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="19851" data-lia-user-login="Ashish_Mathur" class="lia-mention lia-mention-user"&gt;Ashish_Mathur&lt;/a&gt;)&lt;/P&gt;&lt;PRE&gt;Forecast = if(MIN('Calendar'[Date])&amp;lt;[First month in which data is available],BLANK(),if(EOMONTH(MAX(Workfront[Due On]),0)&amp;gt;=EOMONTH(MAX('Calendar'[Date]),0),
    CALCULATE([3 month av],DATESBETWEEN('Calendar'[Date],[Month till where data is available],[Month till where data is available])),BLANK()))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 14:52:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/417851#M320</guid>
      <dc:creator>OKgo</dc:creator>
      <dc:date>2018-05-15T14:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Measure Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/418112#M321</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What result are you looking for?&amp;nbsp; What is your data?&amp;nbsp; Explain.&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 23:12:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/418112#M321</guid>
      <dc:creator>Ashish_Mathur</dc:creator>
      <dc:date>2018-05-15T23:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Measure Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/418116#M322</link>
      <description>I'd like those 86 values to be 82.</description>
      <pubDate>Tue, 15 May 2018 23:23:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/418116#M322</guid>
      <dc:creator>OKgo</dc:creator>
      <dc:date>2018-05-15T23:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Measure Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/418149#M323</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really do not know how you arrive at 82.&amp;nbsp; It is defenitely not a summation of the numbers in the column above.&amp;nbsp; Put in some more effort and explain your data/question.&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 00:28:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/418149#M323</guid>
      <dc:creator>Ashish_Mathur</dc:creator>
      <dc:date>2018-05-16T00:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Measure Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/418153#M324</link>
      <description>&lt;P&gt;Edit: The red 86 should be&amp;nbsp;82 for July &amp;amp; August. As one of the proejects have ended (now blank). The total is in&amp;nbsp; matrix &amp;gt; subtotals &amp;gt; row sub totals.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 14:28:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/418153#M324</guid>
      <dc:creator>OKgo</dc:creator>
      <dc:date>2018-05-16T14:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Measure Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/418854#M326</link>
      <description>&lt;P&gt;Sorry for all the posts. Sending form my cell phone browswer&amp;nbsp;was a nightmare. Here is a sample file&lt;/P&gt;&lt;P&gt;&lt;A href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.dropbox.com%2Fs%2Fj144i4hfe8k5su0%2FPowerBi%2520Timesheet%25203.pbix%3Fdl%3D0&amp;amp;data=02%7C01%7CConstantine.Ward%40catalent.com%7C7d15aaa7694e40c3569708d5bb485211%7Cc2bc6cae7bbb4cda9ebc2076949bbc8d%7C0%7C0%7C636620841643085542&amp;amp;sdata=Pk25gcgs3d8WvUGHVvnTy627aQr7nOVb%2BdXCgOTSClg%3D&amp;amp;reserved=0" target="_blank"&gt;https://www.dropbox.com/s/j144i4hfe8k5su0/PowerBi%20Timesheet%203.pbix?dl=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be great if there was only one subtotal row that respected the data. For example 2017-07 would be 45.34 not 78.67&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 16:18:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/418854#M326</guid>
      <dc:creator>OKgo</dc:creator>
      <dc:date>2018-05-16T16:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Measure Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/428611#M329</link>
      <description>&lt;P&gt;My situation is different because I have 3 tables. One is a table with employee IDs (Table 'ID'). One is a table with employee IDs and their 2017&amp;nbsp;sales for one business (Table 'A'). The third table has employee IDs and their 2017 sales for the other business (Table 'B'). Tables A and B are connected to the employee table by the employee ID. The employees are not exactly the same for each business, though there is some overlap where the employee ID could appear on A and B. I have columns on the ID table that are used as filters on the page, based on where the employee is located and how long they have been at the company.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to calculate the overlapping 2017 results. I have created a measure on the&amp;nbsp;ID table that says this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Overlap = if(SUM('A'[Sales])&amp;gt;0,SUM('B'[Sales]),0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically: if the employee had Sales for A, give me their sales for B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works for each ID on the table and the row shows 0 for the row if sales for A were 0, but the Grand Total returns the entire Sales for B (not just the sum of the sales for IDs that had more than 0 sales for A).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The post is a bit different because mine is returning the value from table B if the sum of the values on table A is more than 0. Any ideas on how to get the total to work correctly?&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 14:38:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/428611#M329</guid>
      <dc:creator>dgenatossio</dc:creator>
      <dc:date>2018-05-30T14:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Measure Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/440861#M330</link>
      <description>&lt;P&gt;Are you able to provide a visual of what this looks like when it's completed?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 12:33:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/440861#M330</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-15T12:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Measure Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/454852#M332</link>
      <description>&lt;P&gt;A really useful write-up, and one I have used previously.&lt;/P&gt;&lt;P&gt;I have a strange issue where using HASONEFILTER or HASONEVALUE has not worked for me in calcualting the totals I would expect. See my post here, if anyone can help me: &lt;A href="https://community.powerbi.com/t5/Desktop/Incorrect-Measure-Total/m-p/454679#M210659" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Incorrect-Measure-Total/m-p/454679#M210659&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2018 15:29:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/454852#M332</guid>
      <dc:creator>jcarville</dc:creator>
      <dc:date>2018-07-04T15:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Measure Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/455339#M333</link>
      <description>&lt;P&gt;Just an update to my cry for help above!&lt;/P&gt;&lt;P&gt;I was given a solution that worked for me that involved having a SUMMARIZE function wrapped within my SUMX function. It could be useful if anyone else comes upon this guide, but is still having an issue with what they expect the total to be.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.powerbi.com/t5/Desktop/Incorrect-Measure-Total/m-p/454679#M210659" target="_blank"&gt;http://community.powerbi.com/t5/Desktop/Incorrect-Measure-Total/m-p/454679#M210659&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 08:49:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/455339#M333</guid>
      <dc:creator>jcarville</dc:creator>
      <dc:date>2018-07-05T08:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Measure Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/466927#M337</link>
      <description>&lt;P&gt;Dude, this by far has been my most frustrating experience working with Power BI is to get the totals row for a table to calculate measures as I'd expect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the tip&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 17:40:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/466927#M337</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-19T17:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Measure Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/479288#M341</link>
      <description>&lt;P&gt;I believe I understand how it works but I do not know how to get it rto work with Division.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to multiply Sales x Discount. I have a Measure Discount Amount that is correct on the rows. The Total would have to be a weighted average calculation as Sales and Discount Amounts are different across the Clients.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 21:02:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/479288#M341</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-02T21:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Measure Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/479940#M342</link>
      <description>&lt;P&gt;Would need to see some sample data and what you expect as output.&amp;nbsp;Please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 13:16:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/479940#M342</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2018-08-03T13:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Measure Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/545538#M346</link>
      <description>&lt;P&gt;Hi, this is my first post, so apologies if I ina&lt;img /&gt;dvertently do something wrong. I get the HASONEFILTER trick, but I cannot resolve my formula for the end. I would like my total to be a simple sum of the values above. My example is a purchase price variance sheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The basic maths for the rows is Qty x Price, average prices CY vs PY, Qty variance (in Kg), Value Variance (in €) which then breaks out into a "Volume Valued Variance" and then a "Price Variance". I would like the column totals of the PPV column &amp;amp; Vol_Val_Var column to equal the sum of the rows above. It seems like a simple question, but in all of my trawling the solution does not jump out at me...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would love if anyone could break my deadlock..&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Paddy&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 09:20:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/545538#M346</guid>
      <dc:creator>PaddyEnFrance</dc:creator>
      <dc:date>2018-10-18T09:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Measure Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/546365#M347</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Share the link from where i can download your PBI file.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 00:21:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/546365#M347</guid>
      <dc:creator>Ashish_Mathur</dc:creator>
      <dc:date>2018-10-19T00:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Measure Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/549489#M348</link>
      <description>&lt;P&gt;Thanks Greg, you saved the day :)&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 08:11:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/549489#M348</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-23T08:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Measure Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/549857#M349</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;, Awesome! Glad to hear it. I also just posted Measure Totals, The Final Word, that provides a general solution to the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 13:14:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/549857#M349</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2018-10-23T13:14:29Z</dc:date>
    </item>
  </channel>
</rss>

