<?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: Incorrect Measure Totals in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Measure-Totals/m-p/1604118#M32191</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="280611" data-lia-user-login="olivere91" class="lia-mention lia-mention-user"&gt;olivere91&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there any other fields in the table which are not displayed in the image that you sent?&lt;/P&gt;</description>
    <pubDate>Sun, 17 Jan 2021 21:15:13 GMT</pubDate>
    <dc:creator>themistoklis</dc:creator>
    <dc:date>2021-01-17T21:15:13Z</dc:date>
    <item>
      <title>Incorrect Measure Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Measure-Totals/m-p/1604063#M32190</link>
      <description>&lt;P&gt;Hi, I'm having trouble with a measure giving inconsistent results:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Available Inventory = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUM('items'[Inventory]) - SUM('Sales_Lines'[Quantity on SO])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Below is an exmaple, the top line is correct the bottom line is not. What can I do?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 17 Jan 2021 20:55:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Measure-Totals/m-p/1604063#M32190</guid>
      <dc:creator>olivere91</dc:creator>
      <dc:date>2021-01-17T20:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Measure Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Measure-Totals/m-p/1604118#M32191</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="280611" data-lia-user-login="olivere91" class="lia-mention lia-mention-user"&gt;olivere91&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there any other fields in the table which are not displayed in the image that you sent?&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2021 21:15:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Measure-Totals/m-p/1604118#M32191</guid>
      <dc:creator>themistoklis</dc:creator>
      <dc:date>2021-01-17T21:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Measure Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Measure-Totals/m-p/1604133#M32192</link>
      <description>&lt;P&gt;Hi there, plenty of rows following the same formula. The only other colums not shown here are Item number and Item description. There is also a filter for item type category.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2021 21:18:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Measure-Totals/m-p/1604133#M32192</guid>
      <dc:creator>olivere91</dc:creator>
      <dc:date>2021-01-17T21:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Measure Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Measure-Totals/m-p/1604145#M32193</link>
      <description>&lt;P&gt;Try the following formula&lt;/P&gt;&lt;P&gt;Available Inventory = SUMX(VALUES ( 'items'[Item_Number] ), CALCULATE ( SUM ('items'[Inventory])))&lt;BR /&gt;-&lt;BR /&gt;SUMX(VALUES ( 'items'[Item_Number] ), CALCULATE ( SUM ('Sales_Lines'[Quantity on SO])))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2021 21:27:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Measure-Totals/m-p/1604145#M32193</guid>
      <dc:creator>themistoklis</dc:creator>
      <dc:date>2021-01-17T21:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Measure Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Measure-Totals/m-p/1604162#M32194</link>
      <description>&lt;P&gt;That didn't work. These are the column headers if that helps.&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>Sun, 17 Jan 2021 21:50:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Measure-Totals/m-p/1604162#M32194</guid>
      <dc:creator>olivere91</dc:creator>
      <dc:date>2021-01-17T21:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Measure Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Measure-Totals/m-p/1604164#M32195</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="280611" data-lia-user-login="olivere91" class="lia-mention lia-mention-user"&gt;olivere91&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change&amp;nbsp;&lt;SPAN&gt;'items'[Item_Number]&amp;nbsp; to No .. name of first field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you could share the file that would be even better. Mask any sensitive data&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2021 21:52:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Measure-Totals/m-p/1604164#M32195</guid>
      <dc:creator>themistoklis</dc:creator>
      <dc:date>2021-01-17T21:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Measure Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Measure-Totals/m-p/1604166#M32196</link>
      <description>&lt;P&gt;Yeah, I replaced the&amp;nbsp;&lt;SPAN&gt;'items'[Item_Number]&amp;nbsp; to No. Sorry I'm very new at this I don't know how to mask.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2021 21:55:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Measure-Totals/m-p/1604166#M32196</guid>
      <dc:creator>olivere91</dc:creator>
      <dc:date>2021-01-17T21:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Measure Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Measure-Totals/m-p/1604168#M32197</link>
      <description>&lt;P&gt;I fixed it! the measure now reads:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Available Inventory = SUMX(VALUES ( 'items'[No] ), CALCULATE ( SUM ('items'[Inventory])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMX(VALUES ( 'items'[No] ), CALCULATE ( SUM ('Sales_Lines'[On Open SO])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Can you explain why my original measure wasn't working every time?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 17 Jan 2021 21:58:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Measure-Totals/m-p/1604168#M32197</guid>
      <dc:creator>olivere91</dc:creator>
      <dc:date>2021-01-17T21:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Measure Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Measure-Totals/m-p/1604176#M32198</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="280611" data-lia-user-login="olivere91" class="lia-mention lia-mention-user"&gt;olivere91&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An article that explains the issue, is the following:&lt;/P&gt;&lt;P&gt;&lt;A href="https://blog.enterprisedna.co/why-your-total-is-incorrect-key-power-bi-concept/" target="_blank"&gt;https://blog.enterprisedna.co/why-your-total-is-incorrect-key-power-bi-concept/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It has to do with how PowerBi read the context especially if you have filters applied.&lt;/P&gt;&lt;P&gt;SUMX is an iterator and it reads data row by row&lt;/P&gt;&lt;P&gt;Values function makes sure that every row displayed in the table will be read&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2021 22:12:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Measure-Totals/m-p/1604176#M32198</guid>
      <dc:creator>themistoklis</dc:creator>
      <dc:date>2021-01-17T22:12:52Z</dc:date>
    </item>
  </channel>
</rss>

