<?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: Dax Running Total working excepts for months with no values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Running-Total-working-excepts-for-months-with-no-values/m-p/3248560#M119788</link>
    <description>&lt;P&gt;Brilliant thanks! That seems to do exactly what i wanted on first look &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the reasoning behind removing filters in the maxdate variable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying several context filters in the calculate expression but to no avail.&lt;/P&gt;&lt;P&gt;And was even thinking about creating a dummy table with a value of zero for at least one date of each month and adding this total to the existing total to make sure all dates had an entry against them.. but thought there must be a simple solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;R&lt;/P&gt;</description>
    <pubDate>Mon, 22 May 2023 21:18:32 GMT</pubDate>
    <dc:creator>Sparramanga</dc:creator>
    <dc:date>2023-05-22T21:18:32Z</dc:date>
    <item>
      <title>Dax Running Total working excepts for months with no values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Running-Total-working-excepts-for-months-with-no-values/m-p/3243921#M119428</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this measure that I have created that works fine with one caveat.. When using the measure on the y=axis and 'dim date'[month name] on the x-axis it display correctly, however..&lt;BR /&gt;When a filter is applied to the 'supported business' table for sector this reduces the running total amount correctly but for any months where the chosen sector value doesnt have a value the the x axis doesnt show that month, skips it and continues to the next month..&lt;BR /&gt;&lt;BR /&gt;here is image with no filter applied..&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is mimage with sector filter applied..&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;and here is my measure..&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;A SB Cumulative Deal Amount Previous FY = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Var&lt;/SPAN&gt; &lt;SPAN&gt;maxdate&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;calculate&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;max&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Supported Business'&lt;/SPAN&gt;&lt;SPAN&gt;[RR If Cp Else GI Date]&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ,&lt;/SPAN&gt;&lt;SPAN&gt;'Supported Business'&lt;/SPAN&gt;&lt;SPAN&gt;[RR If Cp Else GI Date]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;date&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&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nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ,&lt;/SPAN&gt;&lt;SPAN&gt;'Supported Business'&lt;/SPAN&gt;&lt;SPAN&gt;[RR If Cp Else GI Date]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;maxdate&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ,&lt;/SPAN&gt;&lt;SPAN&gt;'Supported Business'&lt;/SPAN&gt;&lt;SPAN&gt;[RR If Cp Else GI Date]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;date&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;2022&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;31&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Result&lt;BR /&gt;&lt;BR /&gt;This measure gets the total for the previous financial year so the inital var MaxDate is getting the the last day of sales for that financial year.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am using the date column&amp;nbsp;[RR If Cp Else GI Date]&amp;nbsp; and getting anything &amp;lt;=maxdate to get the running total.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have tried to use the 'dim date'[date] column as always suggested in any examples ive rad on help forums but could never get that to work.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Is there something i can apply to my current code withou changing the measure to use 'dim date'[date] so that we dont skip a month on the x axis if no sales but just replicate the previous running total value?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;R&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 08:27:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Running-Total-working-excepts-for-months-with-no-values/m-p/3243921#M119428</guid>
      <dc:creator>Sparramanga</dc:creator>
      <dc:date>2023-05-19T08:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Running Total working excepts for months with no values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Running-Total-working-excepts-for-months-with-no-values/m-p/3246826#M119642</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="510132" data-lia-user-login="Sparramanga" class="lia-mention lia-mention-user"&gt;Sparramanga&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try this measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;A SB Cumulative Deal Amount Previous FY = 

Var maxdate =
calculate(
        max('Supported Business'[RR If Cp Else GI Date])
        ,'Supported Business'[RR If Cp Else GI Date] &amp;lt;= date(2023,3,31),REMOVEFILTERS('Supported Business'[Sector])
)


Var Result =
calculate(
            sum('Supported Business'[RR Liability GBP])
            
            , allselected('Supported Business')
             
            ,'Supported Business'[RR If Cp Else GI Date] &amp;lt;=maxdate
            ,'Supported Business'[RR If Cp Else GI Date]&amp;gt; date(2022,3,31)
            )

return
Result&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If the above one can't help you get the desired result, please provide some&amp;nbsp;&lt;STRONG&gt;sample data&lt;/STRONG&gt;&amp;nbsp;in your tables (&lt;STRONG&gt;exclude&amp;nbsp;sensitive&amp;nbsp;data&lt;/STRONG&gt;) with&amp;nbsp;&lt;STRONG&gt;Text&lt;/STRONG&gt;&amp;nbsp;format and your&amp;nbsp;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&amp;nbsp;with backend logic and special examples.&amp;nbsp;&lt;STRONG&gt;It is better&lt;/STRONG&gt;&amp;nbsp;if you can share a&amp;nbsp;&lt;STRONG&gt;simplified&lt;/STRONG&gt;&amp;nbsp;pbix file.&amp;nbsp;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 08:19:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Running-Total-working-excepts-for-months-with-no-values/m-p/3246826#M119642</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-22T08:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Running Total working excepts for months with no values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Running-Total-working-excepts-for-months-with-no-values/m-p/3248560#M119788</link>
      <description>&lt;P&gt;Brilliant thanks! That seems to do exactly what i wanted on first look &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the reasoning behind removing filters in the maxdate variable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying several context filters in the calculate expression but to no avail.&lt;/P&gt;&lt;P&gt;And was even thinking about creating a dummy table with a value of zero for at least one date of each month and adding this total to the existing total to make sure all dates had an entry against them.. but thought there must be a simple solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;R&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 21:18:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Running-Total-working-excepts-for-months-with-no-values/m-p/3248560#M119788</guid>
      <dc:creator>Sparramanga</dc:creator>
      <dc:date>2023-05-22T21:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Running Total working excepts for months with no values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Running-Total-working-excepts-for-months-with-no-values/m-p/3248734#M119797</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="510132" data-lia-user-login="Sparramanga" class="lia-mention lia-mention-user"&gt;Sparramanga&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;REMOVEFILTERS() can c&lt;SPAN&gt;lear filters from the specified tables or columns.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can refer to the following documents that may be helpful to you:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/removefilters-function-dax" target="_blank"&gt;REMOVEFILTERS function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://exceleratorbi.com.au/removefilters-in-dax/" target="_blank"&gt;REMOVEFILTERS() in DAX - Excelerator BI&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 01:54:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Running-Total-working-excepts-for-months-with-no-values/m-p/3248734#M119797</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-23T01:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Running Total working excepts for months with no values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Running-Total-working-excepts-for-months-with-no-values/m-p/3249185#M119835</link>
      <description>&lt;P&gt;Yeah i will check the documentation again.. i think i was unsure as to why removefilters on the sector column would still let me filter the runing total amount by sector, so it reduces the total correctly but still keep the months on the x axis in tact.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 07:45:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Running-Total-working-excepts-for-months-with-no-values/m-p/3249185#M119835</guid>
      <dc:creator>Sparramanga</dc:creator>
      <dc:date>2023-05-23T07:45:58Z</dc:date>
    </item>
  </channel>
</rss>

