<?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: Total Sum of a measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Sum-of-a-measure/m-p/3601810#M139172</link>
    <description>&lt;P&gt;Thank you for your answer&lt;BR /&gt;I tried this several times but I don't know why it doesn't work for me.&lt;BR /&gt;I will send you the sample file. I would be grateful if you could check it.&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1kqsIMJjbORbinUcQ5Y_vfN5ka84ppIwq/view?usp=drive_link" target="_self"&gt;https://drive.google.com/file/d/1kqsIMJjbORbinUcQ5Y_vfN5ka84ppIwq/view?usp=drive_link&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Dec 2023 08:03:18 GMT</pubDate>
    <dc:creator>JavidRobatian</dc:creator>
    <dc:date>2023-12-26T08:03:18Z</dc:date>
    <item>
      <title>Total Sum of a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Sum-of-a-measure/m-p/3601587#M139163</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi experts, hope you all doing good.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sorry guys if my English is weak.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have a table like this where I calculated the earned percentage.&lt;BR /&gt;Now I want to calculate the &lt;STRONG&gt;&lt;U&gt;Score&lt;/U&gt;&lt;/STRONG&gt; of each row, which I have to multiply this earned percentage by 20 and have the sum total of these rows at the end of the table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Actually, I need to have the number &lt;STRONG&gt;&lt;U&gt;130&lt;/U&gt;&lt;/STRONG&gt; at the bottom of the table instead of the number &lt;STRONG&gt;&lt;U&gt;15.&lt;/U&gt;&lt;/STRONG&gt;&lt;BR /&gt;my measure I use is:&lt;BR /&gt;Earned percentage = CALCULATE(SUM('SLS3 InvoiceItem'[Carton])/CALCULATE(SUM(Target[Target])))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Score = [Earned percentage]*20&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I also read this post but still could not solve my problem&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/63376#U63376" target="_self"&gt;http://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/63376#U63376&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 05:46:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Sum-of-a-measure/m-p/3601587#M139163</guid>
      <dc:creator>JavidRobatian</dc:creator>
      <dc:date>2023-12-26T05:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Total Sum of a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Sum-of-a-measure/m-p/3601701#M139167</link>
      <description>&lt;P&gt;It seems like you're trying to compute a score for each row in a Power BI table based on the earned percentage and then summing up those scores to get a total at the end of the table. Let's walk through the steps to achieve this:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Calculate Earned Percentage&lt;/STRONG&gt;: You've already defined the Earned Percentage measure, which is good.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Calculate Score for Each Row&lt;/STRONG&gt;: You've also defined the Score measure as [Earned percentage]*20.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Calculate Total Score at the Bottom&lt;/STRONG&gt;: To get the sum of the scores at the bottom of the table, you can use the SUMMARIZE function combined with UNION in DAX.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Here's how you can do it step by step:&lt;/P&gt;&lt;H3&gt;Step 1 &amp;amp; 2:&lt;/H3&gt;&lt;P&gt;You've already defined these measures. If not, you can create them in Power BI as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Earned percentage = CALCULATE(&lt;BR /&gt;SUM('SLS3 InvoiceItem'[Carton]) / CALCULATE(SUM(Target[Target]))&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;Score = [Earned percentage] * 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;Step 3: Calculate Total Score at the Bottom&lt;/H3&gt;&lt;P&gt;To calculate the total score at the bottom, you can create a new table with the summarized values. Here's a DAX measure that you can add:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Total Score =&lt;BR /&gt;VAR SummaryTable =&lt;BR /&gt;SUMMARIZE(&lt;BR /&gt;'YourTableName', -- Replace 'YourTableName' with the name of your table&lt;BR /&gt;"Score", [Score]&lt;BR /&gt;)&lt;BR /&gt;VAR UnionTable =&lt;BR /&gt;UNION(&lt;BR /&gt;ALL(SummaryTable, SELECTCOLUMNS(SummaryTable, "Score", 0)),&lt;BR /&gt;SELECTCOLUMNS(SummaryTable, "Score", SUMX(SummaryTable, [Score]))&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;MAXX(FILTER(UnionTable, [Score] = 0), [Score])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Replace 'YourTableName' with the actual name of your table in Power BI.&lt;/P&gt;&lt;P&gt;This measure will give you the total score of 130 at the bottom of your table. You can then drag this measure into your table visualization, and it should display the total score as 130.&lt;/P&gt;&lt;P&gt;Remember to replace 'YourTableName' with the actual name of your table in your Power BI model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If this post&amp;nbsp;helps, then please consider&amp;nbsp;Accepting it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In case there is still a problem, please feel free and explain your issue in detail,&amp;nbsp;It will be my pleasure to assist you in any way I can.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 07:20:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Sum-of-a-measure/m-p/3601701#M139167</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2023-12-26T07:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Total Sum of a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Sum-of-a-measure/m-p/3601810#M139172</link>
      <description>&lt;P&gt;Thank you for your answer&lt;BR /&gt;I tried this several times but I don't know why it doesn't work for me.&lt;BR /&gt;I will send you the sample file. I would be grateful if you could check it.&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1kqsIMJjbORbinUcQ5Y_vfN5ka84ppIwq/view?usp=drive_link" target="_self"&gt;https://drive.google.com/file/d/1kqsIMJjbORbinUcQ5Y_vfN5ka84ppIwq/view?usp=drive_link&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 08:03:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Sum-of-a-measure/m-p/3601810#M139172</guid>
      <dc:creator>JavidRobatian</dc:creator>
      <dc:date>2023-12-26T08:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Total Sum of a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Sum-of-a-measure/m-p/3601820#M139173</link>
      <description>&lt;P&gt;ok plz w8.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 08:17:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Sum-of-a-measure/m-p/3601820#M139173</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2023-12-26T08:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Total Sum of a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Sum-of-a-measure/m-p/3601870#M139175</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="652779" data-lia-user-login="JavidRobatian" class="lia-mention lia-mention-user"&gt;JavidRobatian&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Hi, thanks for the information you have given.&lt;/P&gt;
&lt;P&gt;When creating the "Score" field using "Measure", the "Total" of the Score is calculated using the Total of the "Earned percentage", which is 77%.&lt;BR /&gt;If you want the result to be 130 instead of 15, you need to create the field "Score" using "Add column".&lt;/P&gt;
&lt;P&gt;Or use the following DAX to create the field "Score" with Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Score_measure = SUMX('Target',[Earned percentage]*20)&lt;/LI-CODE&gt;
&lt;P&gt;Detailed screenshot：&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;An attachment for your reference. Hope it helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Joseph Ji&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 08:50:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Sum-of-a-measure/m-p/3601870#M139175</guid>
      <dc:creator>v-jincheng-msft</dc:creator>
      <dc:date>2023-12-26T08:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Total Sum of a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Sum-of-a-measure/m-p/3601889#M139176</link>
      <description>&lt;P&gt;This is amazing.&lt;BR /&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 09:10:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Sum-of-a-measure/m-p/3601889#M139176</guid>
      <dc:creator>JavidRobatian</dc:creator>
      <dc:date>2023-12-26T09:10:32Z</dc:date>
    </item>
  </channel>
</rss>

