<?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: Cumulative total of measure to show in card in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-total-of-measure-to-show-in-card/m-p/1911819#M41322</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="281080" data-lia-user-login="Tanushree_Kapse" class="lia-mention lia-mention-user"&gt;Tanushree_Kapse&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes! this works! Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first measure (measure 1) which ends like:&lt;/P&gt;&lt;P&gt;Return&lt;/P&gt;&lt;P&gt;_var1 - _ var2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then I created a second measure with your solution&lt;/P&gt;&lt;P&gt;Measure 2 = SUMX(VALUES(Dates[YearMonth]), measure1)&lt;/P&gt;</description>
    <pubDate>Mon, 21 Jun 2021 09:32:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-06-21T09:32:45Z</dc:date>
    <item>
      <title>Cumulative total of measure to show in card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-total-of-measure-to-show-in-card/m-p/1906025#M41148</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Hi all,&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I need an little help with my DAX formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;In short: I need a running total of a measure I have created. The measure I have created calculates the monthly fee for a specific date, month or year. But what I want to know is "what is the total fee from the first of March to the end of this month?"&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;In depth:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I have multiple accounts (salesforce) with a single value on it as monthly fee. It's a static value with no date or whatsoever.&lt;/FONT&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Accoutname&lt;/TD&gt;&lt;TD&gt;Monthly fee&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Account1&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Account2&lt;/TD&gt;&lt;TD&gt;120&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Account3&lt;/TD&gt;&lt;TD&gt;110&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Account4&lt;/TD&gt;&lt;TD&gt;105&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;To calculate the total monthly fee for each month, I created this measure which works fine (relationships are DateTable - opportunity and opportunity - account) This returns every date, month or year the same value as intended (435):&lt;/FONT&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR _var1 =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUM(Account[Monthly_fee__c]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALLEXCEPT(Opportunity,Opportunity[StartDate_invoice__c]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;The second part is to calculate the the running total of the monthly fee when the Opportunity [StartDate_invoice__c] has been reached.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;So for example for Account1 has an StartDate_Invoice__c of the first of April and Account2 has an StartDate_Invoice__c of the first of May.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Result for April should be 100 and the result for May should be 220. The measure I've created for this is:&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR _var2 = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUM(Account[Monthly_fee__c]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Opportunity[StartDate_invoice__c] &amp;lt; EOMONTH(TODAY(),0),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;NOT(ISBLANK(Opportunity[StartDate_invoice__c])),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER(ALLSELECTED(Dates),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Dates[Date] &amp;lt;= MAX(Dates[Date])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;The outcome for this works like a charm. If we do the calculation _var1 minus _var2 the result is this:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Month&lt;/TD&gt;&lt;TD&gt;Monthly fee&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;March&lt;/TD&gt;&lt;TD&gt;435&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;April&lt;/TD&gt;&lt;TD&gt;335&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;May&lt;/TD&gt;&lt;TD&gt;215&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;June&lt;/TD&gt;&lt;TD&gt;215&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;The final point, referring to my question, I unable to do the cummulative calculation of the outcome of the measure. So I want to have a card which shows me the total earned fee to the end of this month.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;With these numbers, it should be (435 + 335 + 215 + 215) = 1200&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Who can help me fixing the last part?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Thanks in advance!&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Jun 2021 09:31:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-total-of-measure-to-show-in-card/m-p/1906025#M41148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-17T09:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative total of measure to show in card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-total-of-measure-to-show-in-card/m-p/1906157#M41150</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try using this measure:&lt;BR /&gt;&lt;SPAN&gt;Fee(fixed)= SUMX(VALUE(Month), [VAR_var2])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 09:59:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-total-of-measure-to-show-in-card/m-p/1906157#M41150</guid>
      <dc:creator>Tanushree_Kapse</dc:creator>
      <dc:date>2021-06-17T09:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative total of measure to show in card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-total-of-measure-to-show-in-card/m-p/1911819#M41322</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="281080" data-lia-user-login="Tanushree_Kapse" class="lia-mention lia-mention-user"&gt;Tanushree_Kapse&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes! this works! Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first measure (measure 1) which ends like:&lt;/P&gt;&lt;P&gt;Return&lt;/P&gt;&lt;P&gt;_var1 - _ var2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then I created a second measure with your solution&lt;/P&gt;&lt;P&gt;Measure 2 = SUMX(VALUES(Dates[YearMonth]), measure1)&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 09:32:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-total-of-measure-to-show-in-card/m-p/1911819#M41322</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-21T09:32:45Z</dc:date>
    </item>
  </channel>
</rss>

