<?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 Measure not Totaling Correctly in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-Totaling-Correctly/m-p/3243108#M119370</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried a bunch of different ways to fix this and i still cannot get this to total correctly.&amp;nbsp; I have a measure taking my Transaction Qty divided by Units Per Case to get the Total Cases,however, it is not totaling correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the below measure and the quantities are right when i go line by line but the total is still very low compared to when i export the data into excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas? Below are some of the measures that i've tried.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Transactions'&lt;/SPAN&gt;&lt;SPAN&gt;[Order]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;[Total Cases]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;EM&gt;IF(COUNTROWS(VALUES([Transactions [Order]))=1,[Total Cases],SUMX(VALUES([Transactions [Order]),[Total Cases])&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;EM&gt;IF(HASONEFILTER([Transactions [Order]),[Total Cases],SUMX(VALUES([Transcation[Order]),[Total Cases]))&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 18 May 2023 21:50:03 GMT</pubDate>
    <dc:creator>Bryanna</dc:creator>
    <dc:date>2023-05-18T21:50:03Z</dc:date>
    <item>
      <title>Measure not Totaling Correctly</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-Totaling-Correctly/m-p/3243108#M119370</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried a bunch of different ways to fix this and i still cannot get this to total correctly.&amp;nbsp; I have a measure taking my Transaction Qty divided by Units Per Case to get the Total Cases,however, it is not totaling correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the below measure and the quantities are right when i go line by line but the total is still very low compared to when i export the data into excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas? Below are some of the measures that i've tried.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Transactions'&lt;/SPAN&gt;&lt;SPAN&gt;[Order]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;[Total Cases]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;EM&gt;IF(COUNTROWS(VALUES([Transactions [Order]))=1,[Total Cases],SUMX(VALUES([Transactions [Order]),[Total Cases])&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;EM&gt;IF(HASONEFILTER([Transactions [Order]),[Total Cases],SUMX(VALUES([Transcation[Order]),[Total Cases]))&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 May 2023 21:50:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-Totaling-Correctly/m-p/3243108#M119370</guid>
      <dc:creator>Bryanna</dc:creator>
      <dc:date>2023-05-18T21:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not Totaling Correctly</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-Totaling-Correctly/m-p/3243147#M119375</link>
      <description>&lt;P&gt;Your approach with a measure like this is correct. Do you have other columns in your visual? If so, you likely need to use SUMMARIZE instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Transactions'&lt;/SPAN&gt;&lt;SPAN&gt;[Order]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;[Total Cases]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://www.youtube.com/watch?v=UJPBeiGBEg4&amp;amp;t=10s" target="_blank"&gt;(2) Power BI - Tales from the front #01 - Getting the Right Total - YouTube&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Pat&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 22:25:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-Totaling-Correctly/m-p/3243147#M119375</guid>
      <dc:creator>ppm1</dc:creator>
      <dc:date>2023-05-18T22:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not Totaling Correctly</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-Totaling-Correctly/m-p/3243256#M119382</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="417616" data-lia-user-login="Bryanna" class="lia-mention lia-mention-user"&gt;Bryanna&lt;/a&gt;&amp;nbsp;First, please vote for this idea: &lt;A href="https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e" target="_blank"&gt;https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This looks like a measure totals problem. Very common. See my post about it here: &lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:&lt;BR /&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;BR /&gt;&lt;BR /&gt;Also: &lt;A href="https://youtu.be/uXRriTN0cfY" target="_blank"&gt;https://youtu.be/uXRriTN0cfY&lt;/A&gt;&lt;BR /&gt;And: &lt;A href="https://youtu.be/n4TYhF2ARe8" target="_blank"&gt;https://youtu.be/n4TYhF2ARe8&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 01:13:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-Totaling-Correctly/m-p/3243256#M119382</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-05-19T01:13:38Z</dc:date>
    </item>
  </channel>
</rss>

