<?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: Running total of % of Total in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-of-of-Total/m-p/982551#M12024</link>
    <description>&lt;P&gt;Thanks, I tried this method but still no luck.&amp;nbsp; Any other recommendations are welcome.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Mar 2020 17:19:28 GMT</pubDate>
    <dc:creator>Susan13</dc:creator>
    <dc:date>2020-03-19T17:19:28Z</dc:date>
    <item>
      <title>Running total of % of Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-of-of-Total/m-p/965991#M11450</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am trying to show the running total for % of total.&amp;nbsp; In the image below the red line is the actual % of total.&amp;nbsp; But I want to sum these together, like the yellow line but the values are incorrect.&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;This is my current measure however I am not sure where it is wrong.&amp;nbsp; I have tried other solutions that have been provided but was unable to get them to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PL RunningTotal = 
MAXX (
    vwPBIPourLineData,
    SUMX (
        FILTER (
            SUMMARIZE (
                CALCULATETABLE (
                    vwPBIPourLineData,
                    ALLEXCEPT (
                        vwPBIPourLineData,
                        vwPBIPourLineData[WeekNumber]
                    ),
                    ALLSELECTED ( vwPBIPourLineData[WeekNumber] )
                ),
                vwPBIPourLineData[PartNumber],
                "AbsDiff", SUM ( vwPBIPourLineData[AbsoluteDiff] )
            ),
            [AbsDiff]
                &amp;gt;= SUMX (
                    FILTER (
                        CALCULATETABLE (
                            vwPBIPourLineData,
                            ALLEXCEPT (
                                vwPBIPourLineData,
                                vwPBIPourLineData[WeekNumber]
                            ),
                            ALLSELECTED ( vwPBIPourLineData[WeekNumber] )
                        ),
                        vwPBIPourLineData[PartNumber]
                            = EARLIER ( vwPBIPourLineData[PartNumber], 2 )
                    ),
                    vwPBIPourLineData[AbsoluteDiff]
                )
        ),
        [AbsDiff]
    )
)




&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P class="ics-element-donot-delete 1001_CC@"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 03:19:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-of-of-Total/m-p/965991#M11450</guid>
      <dc:creator>Susan13</dc:creator>
      <dc:date>2020-03-10T03:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Running total of % of Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-of-of-Total/m-p/966541#M11455</link>
      <description>Technically, you're not doing a running total because a RT is performed against TIME. You are trying to aggregate across a different dimension. For this, you need to be able to sort the members of the dimension exactly as the visual sorts it and then aggregate accordingly.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Tue, 10 Mar 2020 10:13:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-of-of-Total/m-p/966541#M11455</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-10T10:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Running total of % of Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-of-of-Total/m-p/966575#M11456</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;// Say that you want to have a "RT"
// across products and you want to
// sort them by a measure. Call the
// measure [Base Measure].
// Instead of products, you could
// write a very similar measure
// that would give you a RT across
// product categories, for instance.

[Base Measure - Product RT] =
// Products should be on your x-axis
// and sorted according to [Base Measure]
// descending.
var __totalVisible =
	CALCULATE(
		[Base Measure],
		ALLSELECTED( Products )
	)
var __singleProductVisible =
	HASONEVALUE( Products[ProductId] )
var __currentProductValue = [Base Measure]
// Get the value of the base measure
// for all products before and including
// this one sorted by base measure
// descending.
var __totalForProductsUpToThisOne =
	SUMX(
		ALLSELECTED( Products ),
		var __iteratedProdValue = [Base Measure]
		var __shouldAdd =
			__iteratedProdValue &amp;gt;= __currentProductValue
		return
			__iteratedProdValue * __shouldAdd
	)
var __runningTotalPercentage =
	DIVIDE(
		__totalForProductsUptoThisOne,
		__totalVisible
	)
return
	if( __singleProductVisible, __runningTotalPercentage )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have to think about how to deal with ties, that is, when 2 different products have the same [Base Measure].&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;D&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 10:34:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-of-of-Total/m-p/966575#M11456</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-10T10:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Running total of % of Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-of-of-Total/m-p/982551#M12024</link>
      <description>&lt;P&gt;Thanks, I tried this method but still no luck.&amp;nbsp; Any other recommendations are welcome.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 17:19:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-of-of-Total/m-p/982551#M12024</guid>
      <dc:creator>Susan13</dc:creator>
      <dc:date>2020-03-19T17:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Running total of % of Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-of-of-Total/m-p/984505#M12066</link>
      <description>&lt;P&gt;He there. It works for me:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://1drv.ms/u/s!ApyQEauTSLtOgYMzWBdXOT0iIMwh6Q?e=MtblEU" target="_blank"&gt;https://1drv.ms/u/s!ApyQEauTSLtOgYMzWBdXOT0iIMwh6Q?e=MtblEU&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;D&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 18:15:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-of-of-Total/m-p/984505#M12066</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-20T18:15:18Z</dc:date>
    </item>
  </channel>
</rss>

