<?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: Repeat Last  Available Value and SUM on Monthly Level in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Last-Available-Value-and-SUM-on-Monthly-Level/m-p/3348528#M125735</link>
    <description>&lt;P&gt;Yes, but the problem is that here things that are not there are being reported at the same time with things that are, meaning the results when using a disconnected table will not be suitable, as the actual data will be calculated in a wrong way:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This has been driving me crazy for quite some time now &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jul 2023 11:02:33 GMT</pubDate>
    <dc:creator>wildrose2023</dc:creator>
    <dc:date>2023-07-25T11:02:33Z</dc:date>
    <item>
      <title>Repeat Last  Available Value and SUM on Monthly Level</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Last-Available-Value-and-SUM-on-Monthly-Level/m-p/3327409#M124619</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm struggling with a tricky situation.&lt;/P&gt;&lt;P&gt;I have a large fact table that contain specific account numbers that contain a one time stamp of a credit limit amount. One credit limit started in October (50K) and 2 additional ones in December (1Mil. and 100K). These credit limits should be available as amounts in each month, so even though they are stamped once in a FactTable they should appear every month in the total sum of money at the clients disposal. However this proved to be tricky to achieve. The amounts are appearing but not correctly. The 50K isn't valid anymore from December, it's replaced with the 1.1 Milion, even though it should be 1.15mil. and on the total level it's also not correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These 3 values are stamped only on one specific date, but I need them appearing indefinitely. Is this possible to achieve?&lt;/P&gt;&lt;P&gt;My Last Balance current measure is:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;_max_date&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;LASTDATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DimCalendar&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;_amnt&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;LASTNONBLANKVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DimCalendar&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FactAmount&lt;/SPAN&gt;&lt;SPAN&gt;[Amount]&lt;/SPAN&gt;&lt;SPAN&gt;)), &lt;/SPAN&gt;&lt;SPAN&gt;REMOVEFILTERS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DimCalendar&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;KEEPFILTERS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DimCalendar&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;_max_date&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt; &lt;SPAN&gt;&lt;SPAN&gt;_amnt&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;img /&gt;&lt;P&gt;Really hope you guys can help!&lt;/P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 12 Jul 2023 13:09:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Last-Available-Value-and-SUM-on-Monthly-Level/m-p/3327409#M124619</guid>
      <dc:creator>wildrose2023</dc:creator>
      <dc:date>2023-07-12T13:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat Last  Available Value and SUM on Monthly Level</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Last-Available-Value-and-SUM-on-Monthly-Level/m-p/3332602#M124913</link>
      <description>&lt;P&gt;Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). &lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jul 2023 01:55:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Last-Available-Value-and-SUM-on-Monthly-Level/m-p/3332602#M124913</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-07-16T01:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat Last  Available Value and SUM on Monthly Level</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Last-Available-Value-and-SUM-on-Monthly-Level/m-p/3335953#M125103</link>
      <description>&lt;P&gt;Here is the link to the shared file pbix sample file:&amp;nbsp;&lt;A href="https://drive.google.com/drive/folders/1TQkIGS_QWORk_PMysC1ko8puqniXM1n4?usp=sharing" target="_blank"&gt;https://drive.google.com/drive/folders/1TQkIGS_QWORk_PMysC1ko8puqniXM1n4?usp=sharing&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 08:33:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Last-Available-Value-and-SUM-on-Monthly-Level/m-p/3335953#M125103</guid>
      <dc:creator>wildrose2023</dc:creator>
      <dc:date>2023-07-18T08:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat Last  Available Value and SUM on Monthly Level</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Last-Available-Value-and-SUM-on-Monthly-Level/m-p/3337457#M125180</link>
      <description>&lt;P&gt;Here is a proposed measure formula. It produces the correct cumulative sums but does require the dates relationship to be inactive.&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;LI-CODE lang="markup"&gt;Last Balance = 
    var md=max(DimCalendar[Date])
	var b = summarize(FactAmount,DimAccount[AccountCode],DimAccountingType[AccountingTypeCode],"sm",CALCULATE(sum(FactAmount[Amount]),FactAmount[Date]&amp;lt;=md))
	RETURN sumx(b,[sm])&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;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If that is not acceptable you'll need to use a disconnected table for the matrix columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 00:52:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Last-Available-Value-and-SUM-on-Monthly-Level/m-p/3337457#M125180</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-07-19T00:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat Last  Available Value and SUM on Monthly Level</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Last-Available-Value-and-SUM-on-Monthly-Level/m-p/3340919#M125390</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I think the disconnected table will not be the right approach, nor innactive relationship, because this way on a yearly level it will also show the same value of 1.150.000$, while for 2023 if we look at the monthly sum the it should be 12*1.150.000 =&amp;nbsp;13.800.000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 13:09:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Last-Available-Value-and-SUM-on-Monthly-Level/m-p/3340919#M125390</guid>
      <dc:creator>wildrose2023</dc:creator>
      <dc:date>2023-07-20T13:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat Last  Available Value and SUM on Monthly Level</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Last-Available-Value-and-SUM-on-Monthly-Level/m-p/3340921#M125391</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 13:10:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Last-Available-Value-and-SUM-on-Monthly-Level/m-p/3340921#M125391</guid>
      <dc:creator>wildrose2023</dc:creator>
      <dc:date>2023-07-20T13:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat Last  Available Value and SUM on Monthly Level</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Last-Available-Value-and-SUM-on-Monthly-Level/m-p/3341171#M125402</link>
      <description>&lt;LI-CODE lang="markup"&gt;while for 2023 if we look at the monthly sum the it should be 12*1.150.000 = 13.800.000&lt;/LI-CODE&gt;
&lt;P&gt;why?&amp;nbsp; There are no actual values being added in 2023. All you do is carry over the last balance from December 2022.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To report on things that are not there you need to use disconnected tables and/or crossjoins&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 14:47:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Last-Available-Value-and-SUM-on-Monthly-Level/m-p/3341171#M125402</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-07-20T14:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat Last  Available Value and SUM on Monthly Level</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Last-Available-Value-and-SUM-on-Monthly-Level/m-p/3348528#M125735</link>
      <description>&lt;P&gt;Yes, but the problem is that here things that are not there are being reported at the same time with things that are, meaning the results when using a disconnected table will not be suitable, as the actual data will be calculated in a wrong way:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This has been driving me crazy for quite some time now &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 11:02:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Last-Available-Value-and-SUM-on-Monthly-Level/m-p/3348528#M125735</guid>
      <dc:creator>wildrose2023</dc:creator>
      <dc:date>2023-07-25T11:02:33Z</dc:date>
    </item>
  </channel>
</rss>

