<?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 Displays Last Available Value Even with Missing Current Month Data in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Displays-Last-Available-Value-Even-with-Missing/m-p/4053680#M160866</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="740125" data-lia-user-login="marie_joy" class="lia-mention lia-mention-user"&gt;marie_joy&lt;/a&gt;&amp;nbsp;Hi! Try with these two measures:&lt;BR /&gt;&lt;BR /&gt;RunningTotal =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(net_marg_product_lines[amount]),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALLSELECTED(month_table),&lt;BR /&gt;month_table[cy_month_number] &amp;lt;= MAX(month_table[cy_month_number])&lt;BR /&gt;),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALLSELECTED(net_marg_product_lines),&lt;BR /&gt;net_marg_product_lines[fiscal_year] = MAX(net_marg_product_lines[fiscal_year])&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;LastAvailableValue =&lt;BR /&gt;VAR CurrentMonth = MAX(month_table[cy_month_number])&lt;BR /&gt;VAR FiscalYear = MAX(net_marg_product_lines[fiscal_year])&lt;BR /&gt;VAR LastMonthWithValue =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;MAX(month_table[cy_month_number]),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL(net_marg_product_lines),&lt;BR /&gt;net_marg_product_lines[fiscal_year] = FiscalYear &amp;amp;&amp;amp;&lt;BR /&gt;net_marg_product_lines[amount] &amp;lt;&amp;gt; BLANK()&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;VAR LastValue =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(net_marg_product_lines[amount]),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL(month_table),&lt;BR /&gt;month_table[cy_month_number] = LastMonthWithValue&lt;BR /&gt;),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL(net_marg_product_lines),&lt;BR /&gt;net_marg_product_lines[fiscal_year] = FiscalYear&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;IF(&lt;BR /&gt;ISBLANK(SUM(net_marg_product_lines[amount])),&lt;BR /&gt;LastValue,&lt;BR /&gt;SUM(net_marg_product_lines[amount])&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BBF&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jul 2024 09:56:30 GMT</pubDate>
    <dc:creator>BeaBF</dc:creator>
    <dc:date>2024-07-22T09:56:30Z</dc:date>
    <item>
      <title>Running Total Displays Last Available Value Even with Missing Current Month Data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Displays-Last-Available-Value-Even-with-Missing/m-p/4053614#M160860</link>
      <description>&lt;P&gt;Hi Power BI Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a running total measure in DAX that ensures the last available value is displayed even if there are no values for the current month. My current formula is as follows:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RunningTotalValue = 
CALCULATE(
    SUM(net_marg_product_lines[amount]),
    FILTER(
        ALLSELECTED(month_table),
        month_table[cy_month_number] &amp;lt;= MAX(month_table[cy_month_number])
    ),
    FILTER(
        ALLSELECTED(net_marg_product_lines),
        net_marg_product_lines[fiscal_year] = MAX(net_marg_product_lines[fiscal_year])
    )
)&lt;/LI-CODE&gt;&lt;P&gt;This formula works well for calculating the running total based on month number and fiscal year. However, if there are no values for the current month, it doesn't display the last available value from the previous months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I modify this DAX formula to ensure that the running total shows the last available value even if there are no entries for the current month?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 09:25:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Displays-Last-Available-Value-Even-with-Missing/m-p/4053614#M160860</guid>
      <dc:creator>marie_joy</dc:creator>
      <dc:date>2024-07-22T09:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total Displays Last Available Value Even with Missing Current Month Data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Displays-Last-Available-Value-Even-with-Missing/m-p/4053623#M160861</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="740125" data-lia-user-login="marie_joy" class="lia-mention lia-mention-user"&gt;marie_joy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please refer to this Article and Video, it will help you solve your problem &lt;A href="https://www.sqlbi.com/articles/computing-running-totals-in-dax/" target="_blank"&gt;https://www.sqlbi.com/articles/computing-running-totals-in-dax/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 09:29:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Displays-Last-Available-Value-Even-with-Missing/m-p/4053623#M160861</guid>
      <dc:creator>Joe_Barry</dc:creator>
      <dc:date>2024-07-22T09:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total Displays Last Available Value Even with Missing Current Month Data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Displays-Last-Available-Value-Even-with-Missing/m-p/4053680#M160866</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="740125" data-lia-user-login="marie_joy" class="lia-mention lia-mention-user"&gt;marie_joy&lt;/a&gt;&amp;nbsp;Hi! Try with these two measures:&lt;BR /&gt;&lt;BR /&gt;RunningTotal =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(net_marg_product_lines[amount]),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALLSELECTED(month_table),&lt;BR /&gt;month_table[cy_month_number] &amp;lt;= MAX(month_table[cy_month_number])&lt;BR /&gt;),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALLSELECTED(net_marg_product_lines),&lt;BR /&gt;net_marg_product_lines[fiscal_year] = MAX(net_marg_product_lines[fiscal_year])&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;LastAvailableValue =&lt;BR /&gt;VAR CurrentMonth = MAX(month_table[cy_month_number])&lt;BR /&gt;VAR FiscalYear = MAX(net_marg_product_lines[fiscal_year])&lt;BR /&gt;VAR LastMonthWithValue =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;MAX(month_table[cy_month_number]),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL(net_marg_product_lines),&lt;BR /&gt;net_marg_product_lines[fiscal_year] = FiscalYear &amp;amp;&amp;amp;&lt;BR /&gt;net_marg_product_lines[amount] &amp;lt;&amp;gt; BLANK()&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;VAR LastValue =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(net_marg_product_lines[amount]),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL(month_table),&lt;BR /&gt;month_table[cy_month_number] = LastMonthWithValue&lt;BR /&gt;),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL(net_marg_product_lines),&lt;BR /&gt;net_marg_product_lines[fiscal_year] = FiscalYear&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;IF(&lt;BR /&gt;ISBLANK(SUM(net_marg_product_lines[amount])),&lt;BR /&gt;LastValue,&lt;BR /&gt;SUM(net_marg_product_lines[amount])&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BBF&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 09:56:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Displays-Last-Available-Value-Even-with-Missing/m-p/4053680#M160866</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2024-07-22T09:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total Displays Last Available Value Even with Missing Current Month Data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Displays-Last-Available-Value-Even-with-Missing/m-p/4053728#M160870</link>
      <description>&lt;P&gt;Source Data&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Current Month Calculation&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Running total Calculation&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Please check even if there is no value for Jul-24 its showing the previous last running total&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Now I change the value of Jul-24 from 0 to null for testing&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Formula is still working&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 10:19:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Displays-Last-Available-Value-Even-with-Missing/m-p/4053728#M160870</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-22T10:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total Displays Last Available Value Even with Missing Current Month Data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Displays-Last-Available-Value-Even-with-Missing/m-p/4053805#M160875</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;ok and which value do you want if there is no value for that month? Can you upload the pbix in drive and share the link?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BBF&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 10:56:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Displays-Last-Available-Value-Even-with-Missing/m-p/4053805#M160875</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2024-07-22T10:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total Displays Last Available Value Even with Missing Current Month Data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Displays-Last-Available-Value-Even-with-Missing/m-p/4053814#M160876</link>
      <description>&lt;P&gt;Hi BBF,&lt;/P&gt;&lt;P&gt;I still have blanks for the month with null values. However it did solve one of my other problem:&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Achieve-Running-Total-with-Multi-Level-Breakdown-and-Overall/td-p/4053749" target="_blank"&gt;DAX: Achieve Running Total with Multi-Level Breakd... - Microsoft Fabric Community&lt;/A&gt;&amp;nbsp;Now I see correct values for each product and each accounts. Should I specific in your 'LastAvailableValue' that there is a breakdown by accounts type and product type for it to work?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 11:04:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Displays-Last-Available-Value-Even-with-Missing/m-p/4053814#M160876</guid>
      <dc:creator>marie_joy</dc:creator>
      <dc:date>2024-07-22T11:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total Displays Last Available Value Even with Missing Current Month Data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Displays-Last-Available-Value-Even-with-Missing/m-p/4053829#M160877</link>
      <description>&lt;P&gt;As per the formula, it will always bring the previous month value.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 11:18:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Displays-Last-Available-Value-Even-with-Missing/m-p/4053829#M160877</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-22T11:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total Displays Last Available Value Even with Missing Current Month Data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Displays-Last-Available-Value-Even-with-Missing/m-p/4053847#M160880</link>
      <description>&lt;P&gt;Please send your mail id so that I can send you the power bi file. Here I am unable to attach the file. It says .pbix is not supported.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 11:27:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Displays-Last-Available-Value-Even-with-Missing/m-p/4053847#M160880</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-22T11:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total Displays Last Available Value Even with Missing Current Month Data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Displays-Last-Available-Value-Even-with-Missing/m-p/4053931#M160883</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Easiest answer is to change the relationships between my net_marg_product table and my month_table and to put it as uni-directional.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 12:06:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Displays-Last-Available-Value-Even-with-Missing/m-p/4053931#M160883</guid>
      <dc:creator>marie_joy</dc:creator>
      <dc:date>2024-07-22T12:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total Displays Last Available Value Even with Missing Current Month Data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Displays-Last-Available-Value-Even-with-Missing/m-p/4053999#M160886</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="740125" data-lia-user-login="marie_joy" class="lia-mention lia-mention-user"&gt;marie_joy&lt;/a&gt;&amp;nbsp;Yes, but i need to see the file. Which value do you want where there is no value for that month? I send you my email in pvt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've pasted the above formula under your other post, so that you can accept the solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BBF&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 12:41:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Displays-Last-Available-Value-Even-with-Missing/m-p/4053999#M160886</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2024-07-22T12:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total Displays Last Available Value Even with Missing Current Month Data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Displays-Last-Available-Value-Even-with-Missing/m-p/4054003#M160887</link>
      <description>&lt;P&gt;Thank you for your reply. I need the value from the previous month.&lt;/P&gt;&lt;P&gt;But I've actually find a very easy solution. If I change the relationship as uni-directional, no more problems!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 12:45:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Displays-Last-Available-Value-Even-with-Missing/m-p/4054003#M160887</guid>
      <dc:creator>marie_joy</dc:creator>
      <dc:date>2024-07-22T12:45:02Z</dc:date>
    </item>
  </channel>
</rss>

