<?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: Bar chart to show cumulative total from current month to next N-month (using what-if parameter) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-chart-to-show-cumulative-total-from-current-month-to-next-N/m-p/2477389#M67688</link>
    <description>&lt;P&gt;Cool, could you please share an example of that are the numbers (the actual value) you want to get in the specific chart that is not working&lt;/P&gt;</description>
    <pubDate>Tue, 26 Apr 2022 10:19:23 GMT</pubDate>
    <dc:creator>SpartaBI</dc:creator>
    <dc:date>2022-04-26T10:19:23Z</dc:date>
    <item>
      <title>Bar chart to show cumulative total from current month to next N-month (using what-if parameter)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-chart-to-show-cumulative-total-from-current-month-to-next-N/m-p/2477062#M67662</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;Hello ! &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Would like to show&lt;STRONG&gt; cumulative total based on current month till next N month(what-if parameter) .&amp;nbsp;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;Fact table :&amp;nbsp;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;I am only able to show sum of each month , but fail to show cumulative total&amp;nbsp;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;img /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;Measure A : Cumulative total&amp;nbsp; ( Working correctly)&amp;nbsp;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Cumulative_total = 
var max_date = MAX('Date'[Date])
var result = CALCULATE(CF_Table[CF_Sum],
'Date'[Date] &amp;lt;= max_date )
return result &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;Measure B : To show the sum of next N months data&amp;nbsp; with what if parameter&amp;nbsp; ( Working correctly)&amp;nbsp;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CF_next_N = 
var slected = today()
var result = CALCULATE(sum(CF_Table[CF_Amount_LCY]),
DATESINPERIOD('Date'[Date],slected,+[Parameter Value],MONTH))
return result​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;Bar chart will show the total for next month that is based on my what-if parameter slicer.&amp;nbsp;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;img /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;- Facing error after edited the dax to show cumulative total instead of just total of&amp;nbsp; each month.&amp;nbsp;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;- This is my attempt to show cumulative total for next N months.&amp;nbsp;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Cumulative_total_N_try = 
var slected = today()
var max_date = MAX('Date'[Date])
var result = 
CALCULATE(sum(CF_Table[CF_Amount_LCY]),
DATESINPERIOD('Date'[Date],slected,+[Parameter Value],MONTH),
filter(ALL(CF_Table), CF_Table[Cash_Flow_Date] &amp;lt;= max_date ))
return result ​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;A title="Pls review my file here " href="https://drive.google.com/drive/folders/1K27UoYdhHlLya-mFqQdj85OPBPinREme?usp=sharing" target="_blank" rel="noopener"&gt;My file &amp;nbsp;is here.&amp;nbsp;&lt;/A&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks in advance !&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 05:50:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-chart-to-show-cumulative-total-from-current-month-to-next-N/m-p/2477062#M67662</guid>
      <dc:creator>New_hello188</dc:creator>
      <dc:date>2022-04-27T05:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart to show cumulative total from current month to next N-month (using what-if parameter)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-chart-to-show-cumulative-total-from-current-month-to-next-N/m-p/2477150#M67670</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="363066" data-lia-user-login="New_hello188" class="lia-mention lia-mention-user"&gt;New_hello188&lt;/a&gt;&amp;nbsp;what do you mean by error? The measure is breaking or the result is wrong?&lt;BR /&gt;Anyway, without going deep on your model, just looking at the measure, try this:&lt;BR /&gt;Replace this part:&lt;BR /&gt;FILTER(CF_Table, CF_Table[Cash_Flow_Date] &amp;lt;= max_date)&lt;BR /&gt;with this:&lt;BR /&gt;CF_Table[Cash_Flow_Date] &amp;lt;= max_date&lt;BR /&gt;if not try this:&lt;BR /&gt;FILTER(ALL(CF_Table), CF_Table[Cash_Flow_Date] &amp;lt;= max_date).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 08:59:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-chart-to-show-cumulative-total-from-current-month-to-next-N/m-p/2477150#M67670</guid>
      <dc:creator>SpartaBI</dc:creator>
      <dc:date>2022-04-26T08:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart to show cumulative total from current month to next N-month (using what-if parameter)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-chart-to-show-cumulative-total-from-current-month-to-next-N/m-p/2477268#M67677</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="377293" data-lia-user-login="SpartaBI" class="lia-mention lia-mention-user"&gt;SpartaBI&lt;/a&gt;&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;Thanks for the response !&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried and it is still showing total.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just upload my file for your better reference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please get it from here :&amp;nbsp;&amp;nbsp;&lt;A title="My file " href="https://drive.google.com/drive/folders/1K27UoYdhHlLya-mFqQdj85OPBPinREme?usp=sharing" target="_self"&gt;My file &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 09:33:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-chart-to-show-cumulative-total-from-current-month-to-next-N/m-p/2477268#M67677</guid>
      <dc:creator>New_hello188</dc:creator>
      <dc:date>2022-04-26T09:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart to show cumulative total from current month to next N-month (using what-if parameter)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-chart-to-show-cumulative-total-from-current-month-to-next-N/m-p/2477389#M67688</link>
      <description>&lt;P&gt;Cool, could you please share an example of that are the numbers (the actual value) you want to get in the specific chart that is not working&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 10:19:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-chart-to-show-cumulative-total-from-current-month-to-next-N/m-p/2477389#M67688</guid>
      <dc:creator>SpartaBI</dc:creator>
      <dc:date>2022-04-26T10:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart to show cumulative total from current month to next N-month (using what-if parameter)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-chart-to-show-cumulative-total-from-current-month-to-next-N/m-p/2477392#M67689</link>
      <description>&lt;P&gt;Hey, I looked at the measure you tried, this is not what I meant, write this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Cumulative_total_N_try = 
VAR slected =
    TODAY ()
VAR max_date =
    MAX ( 'Date'[Date] )
VAR result =
    CALCULATE (
        CF_Table[CF_Sum],
        DATESINPERIOD ( 'Date'[Date], slected, + [Parameter Value], MONTH ),
        FILTER ( ALL ( CF_Table ), CF_Table[Cash_Flow_Date] &amp;lt;= max_date )
    )
RETURN
    result&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 26 Apr 2022 10:22:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-chart-to-show-cumulative-total-from-current-month-to-next-N/m-p/2477392#M67689</guid>
      <dc:creator>SpartaBI</dc:creator>
      <dc:date>2022-04-26T10:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart to show cumulative total from current month to next N-month (using what-if parameter)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-chart-to-show-cumulative-total-from-current-month-to-next-N/m-p/2478992#M67794</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="377293" data-lia-user-login="SpartaBI" class="lia-mention lia-mention-user"&gt;SpartaBI&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for review !&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the measure as you suggested;&amp;nbsp; the number looks like adding up and the interaction between bar chart and N-parameter slicer is weird ....&amp;nbsp;&lt;/P&gt;&lt;P&gt;The cumulative total change according to the N-Parameter with still showing the same number of month on X-axis.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The final chart that I want to achieve is the bar chart that shows the cumulative total for next N-month on x-axis based on N-parameter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;- I can only able to shows the total but struggle with cumulative total.&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Below screenshot can be found in another page of my file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Could you pls help to take a look ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 01:50:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-chart-to-show-cumulative-total-from-current-month-to-next-N/m-p/2478992#M67794</guid>
      <dc:creator>New_hello188</dc:creator>
      <dc:date>2022-04-27T01:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart to show cumulative total from current month to next N-month (using what-if parameter)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-chart-to-show-cumulative-total-from-current-month-to-next-N/m-p/2492099#M68662</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="363066" data-lia-user-login="New_hello188" class="lia-mention lia-mention-user"&gt;New_hello188&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or accept the helpful suggestions to help others who faced similar requirements.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;If these also don't help, can you please share a pbix or some dummy data that keep raw data structure with expected results? They will help us clarify your scenario and test to coding formula.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 01:47:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-chart-to-show-cumulative-total-from-current-month-to-next-N/m-p/2492099#M68662</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-04T01:47:26Z</dc:date>
    </item>
  </channel>
</rss>

