<?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 Total Sum in each row in a table issue of DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Sum-in-each-row-in-a-table-issue-of-DAX/m-p/3731604#M145421</link>
    <description>&lt;P&gt;Hello Everyone,&lt;BR /&gt;I am facing an issue , and unable to solve.&lt;BR /&gt;I have this below data. I want &lt;STRONG&gt;14968&lt;/STRONG&gt; Value for all the &lt;STRONG&gt;voice numbers&lt;/STRONG&gt; under "&lt;STRONG&gt;Total Invoice Amount&lt;/STRONG&gt;" similar to "&lt;STRONG&gt;Total test Value&lt;/STRONG&gt;" column. I have achieved the&amp;nbsp;&lt;STRONG&gt;Total test Value&amp;nbsp;&lt;/STRONG&gt;using a calculated column using Earlier fuction, But its &lt;STRONG&gt;not changing dynamically with slicer selection&lt;/STRONG&gt;. With slicer selection the value should be 14968. Here&amp;nbsp;&lt;STRONG&gt;Invoice Item Amount Measure2 &lt;/STRONG&gt;is a Measure.&lt;BR /&gt;The &lt;STRONG&gt;Total Invoice Amount&lt;/STRONG&gt; should be "&lt;STRONG&gt;sum of allthe invoice item amount measure 2 grouped by voice number."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have written the below formulas:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Invoice Item Amount Measure 2&lt;/STRONG&gt; is a Measure,&lt;BR /&gt;&lt;STRONG&gt;Invoice Item Amount Measure 2&lt;/STRONG&gt; =&lt;BR /&gt;SUMX(&lt;BR /&gt;'Invoice Hold Facts',&lt;BR /&gt;IF(&lt;BR /&gt;'Invoice Hold Facts'[Highest Ranking Indicator] = "Y",&lt;BR /&gt;'Invoice Hold Facts'[Invoice Item Amount],&lt;BR /&gt;0&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;&lt;STRONG&gt;Total test Value&lt;/STRONG&gt; is a Calculated column using&lt;STRONG&gt;&amp;nbsp;Invoice Item Amount Measure 2&lt;/STRONG&gt; &amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;Total test Value&amp;nbsp;&lt;/STRONG&gt;=&lt;BR /&gt;CALCULATE(&lt;BR /&gt;[Invoice Item Amount Measure 2], FILTER('Invoice Hold Facts','Invoice Hold Facts'[Invoice Number] = EARLIER('Invoice Hold Facts'[Invoice Number]) &amp;amp;&amp;amp; 'Invoice Hold Facts'[SUPPLIER_WID] = EARLIER('Invoice Hold Facts'[SUPPLIER_WID]) &amp;amp;&amp;amp; 'Invoice Hold Facts'[Highest Ranking Indicator] = "Y"))&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------&lt;BR /&gt;I have tried other methods as measures , but nothing is working.&amp;nbsp;&lt;BR /&gt;Below are some methods I tried i have commented some methods in it.&lt;/P&gt;&lt;P&gt;Total Amount Measure&amp;nbsp; =&lt;BR /&gt;/*CALCULATE(&lt;BR /&gt;SUM('Invoice Hold Facts'[Invoice Item Amount]),&lt;BR /&gt;FILTER(&lt;BR /&gt;'Invoice Hold Facts',&lt;BR /&gt;[Invoice Item Amount Measure] = CALCULATE(&lt;BR /&gt;SUM('Invoice Hold Facts'[Invoice Item Amount]),&lt;BR /&gt;'Invoice Hold Facts'[Highest Ranking Indicator] = "Y"&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)*/&lt;BR /&gt;/*SUMX(&lt;BR /&gt;SUMMARIZE(&lt;BR /&gt;'Invoice Hold Facts',&lt;BR /&gt;'Invoice Hold Facts'[Internal Invoice Id],&lt;BR /&gt;"TotalInvoiceAmount", [Invoice Item Amount Measure 2]&lt;BR /&gt;),&lt;BR /&gt;[TotalInvoiceAmount]&lt;BR /&gt;)*/&lt;BR /&gt;/*SUMX(&lt;BR /&gt;VALUES('Invoice Hold Facts'[Invoice Number]),&lt;BR /&gt;[Invoice Item Amount Measure 2]&lt;BR /&gt;)*/&lt;BR /&gt;/*CALCULATE(&lt;BR /&gt;SUM('Invoice Hold Facts'[Invoice Item Amount]),&lt;BR /&gt;ALLEXCEPT('Invoice Hold Facts', 'Invoice Hold Facts'[Invoice number])&lt;BR /&gt;)*/&lt;BR /&gt;SUMX(&lt;BR /&gt;VALUES('Invoice Hold Facts'[Invoice Number]),&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM('Invoice Hold Facts'[Invoice Item Amount])&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;PLEASE HELP. THANKYOU&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2024 20:27:08 GMT</pubDate>
    <dc:creator>nemo189</dc:creator>
    <dc:date>2024-02-28T20:27:08Z</dc:date>
    <item>
      <title>Total Sum in each row in a table issue of DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Sum-in-each-row-in-a-table-issue-of-DAX/m-p/3731604#M145421</link>
      <description>&lt;P&gt;Hello Everyone,&lt;BR /&gt;I am facing an issue , and unable to solve.&lt;BR /&gt;I have this below data. I want &lt;STRONG&gt;14968&lt;/STRONG&gt; Value for all the &lt;STRONG&gt;voice numbers&lt;/STRONG&gt; under "&lt;STRONG&gt;Total Invoice Amount&lt;/STRONG&gt;" similar to "&lt;STRONG&gt;Total test Value&lt;/STRONG&gt;" column. I have achieved the&amp;nbsp;&lt;STRONG&gt;Total test Value&amp;nbsp;&lt;/STRONG&gt;using a calculated column using Earlier fuction, But its &lt;STRONG&gt;not changing dynamically with slicer selection&lt;/STRONG&gt;. With slicer selection the value should be 14968. Here&amp;nbsp;&lt;STRONG&gt;Invoice Item Amount Measure2 &lt;/STRONG&gt;is a Measure.&lt;BR /&gt;The &lt;STRONG&gt;Total Invoice Amount&lt;/STRONG&gt; should be "&lt;STRONG&gt;sum of allthe invoice item amount measure 2 grouped by voice number."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have written the below formulas:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Invoice Item Amount Measure 2&lt;/STRONG&gt; is a Measure,&lt;BR /&gt;&lt;STRONG&gt;Invoice Item Amount Measure 2&lt;/STRONG&gt; =&lt;BR /&gt;SUMX(&lt;BR /&gt;'Invoice Hold Facts',&lt;BR /&gt;IF(&lt;BR /&gt;'Invoice Hold Facts'[Highest Ranking Indicator] = "Y",&lt;BR /&gt;'Invoice Hold Facts'[Invoice Item Amount],&lt;BR /&gt;0&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;&lt;STRONG&gt;Total test Value&lt;/STRONG&gt; is a Calculated column using&lt;STRONG&gt;&amp;nbsp;Invoice Item Amount Measure 2&lt;/STRONG&gt; &amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;Total test Value&amp;nbsp;&lt;/STRONG&gt;=&lt;BR /&gt;CALCULATE(&lt;BR /&gt;[Invoice Item Amount Measure 2], FILTER('Invoice Hold Facts','Invoice Hold Facts'[Invoice Number] = EARLIER('Invoice Hold Facts'[Invoice Number]) &amp;amp;&amp;amp; 'Invoice Hold Facts'[SUPPLIER_WID] = EARLIER('Invoice Hold Facts'[SUPPLIER_WID]) &amp;amp;&amp;amp; 'Invoice Hold Facts'[Highest Ranking Indicator] = "Y"))&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------&lt;BR /&gt;I have tried other methods as measures , but nothing is working.&amp;nbsp;&lt;BR /&gt;Below are some methods I tried i have commented some methods in it.&lt;/P&gt;&lt;P&gt;Total Amount Measure&amp;nbsp; =&lt;BR /&gt;/*CALCULATE(&lt;BR /&gt;SUM('Invoice Hold Facts'[Invoice Item Amount]),&lt;BR /&gt;FILTER(&lt;BR /&gt;'Invoice Hold Facts',&lt;BR /&gt;[Invoice Item Amount Measure] = CALCULATE(&lt;BR /&gt;SUM('Invoice Hold Facts'[Invoice Item Amount]),&lt;BR /&gt;'Invoice Hold Facts'[Highest Ranking Indicator] = "Y"&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)*/&lt;BR /&gt;/*SUMX(&lt;BR /&gt;SUMMARIZE(&lt;BR /&gt;'Invoice Hold Facts',&lt;BR /&gt;'Invoice Hold Facts'[Internal Invoice Id],&lt;BR /&gt;"TotalInvoiceAmount", [Invoice Item Amount Measure 2]&lt;BR /&gt;),&lt;BR /&gt;[TotalInvoiceAmount]&lt;BR /&gt;)*/&lt;BR /&gt;/*SUMX(&lt;BR /&gt;VALUES('Invoice Hold Facts'[Invoice Number]),&lt;BR /&gt;[Invoice Item Amount Measure 2]&lt;BR /&gt;)*/&lt;BR /&gt;/*CALCULATE(&lt;BR /&gt;SUM('Invoice Hold Facts'[Invoice Item Amount]),&lt;BR /&gt;ALLEXCEPT('Invoice Hold Facts', 'Invoice Hold Facts'[Invoice number])&lt;BR /&gt;)*/&lt;BR /&gt;SUMX(&lt;BR /&gt;VALUES('Invoice Hold Facts'[Invoice Number]),&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM('Invoice Hold Facts'[Invoice Item Amount])&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;PLEASE HELP. THANKYOU&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 20:27:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Sum-in-each-row-in-a-table-issue-of-DAX/m-p/3731604#M145421</guid>
      <dc:creator>nemo189</dc:creator>
      <dc:date>2024-02-28T20:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Total Sum in each row in a table issue of DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Sum-in-each-row-in-a-table-issue-of-DAX/m-p/3732422#M145459</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="597999" data-lia-user-login="nemo189" class="lia-mention lia-mention-user"&gt;nemo189&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I read your DAX code carefully, to dynamically calculate the “Total Invoice Amount” based on slicer selections, you can create a measure that considers the filtered context.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I think you can create a Measure for &lt;STRONG&gt;Total Invoice Amount&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total Invoice Amount = 
CALCULATE(
    [Invoice Item Amount Measure 2],
    FILTER(
        ALLSELECTED('Invoice Hold Facts'),
        'Invoice Hold Facts'[Highest Ranking Indicator] = "Y"
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;The ALLSELECTED function ensures that the slicer selections are considered. The filter condition restricts the calculation to rows where the “Highest Ranking Indicator” is “Y.”&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 style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 05:51:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Sum-in-each-row-in-a-table-issue-of-DAX/m-p/3732422#M145459</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-29T05:51:34Z</dc:date>
    </item>
  </channel>
</rss>

