- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Repeat Last Available Value and SUM on Monthly Level
Hi guys,
I'm struggling with a tricky situation.
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.
These 3 values are stamped only on one specific date, but I need them appearing indefinitely. Is this possible to achieve?
My Last Balance current measure is:
Really hope you guys can help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here is the link to the shared file pbix sample file: https://drive.google.com/drive/folders/1TQkIGS_QWORk_PMysC1ko8puqniXM1n4?usp=sharing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here is a proposed measure formula. It produces the correct cumulative sums but does require the dates relationship to be inactive.
Last Balance =
var md=max(DimCalendar[Date])
var b = summarize(FactAmount,DimAccount[AccountCode],DimAccountingType[AccountingTypeCode],"sm",CALCULATE(sum(FactAmount[Amount]),FactAmount[Date]<=md))
RETURN sumx(b,[sm])
If that is not acceptable you'll need to use a disconnected table for the matrix columns.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @lbendlin ,
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 = 13.800.000
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
while for 2023 if we look at the monthly sum the it should be 12*1.150.000 = 13.800.000
why? There are no actual values being added in 2023. All you do is carry over the last balance from December 2022.
To report on things that are not there you need to use disconnected tables and/or crossjoins
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
This has been driving me crazy for quite some time now 😞
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.
https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
05-05-2024 08:01 AM | |||
08-23-2024 08:39 AM | |||
08-02-2023 09:56 AM | |||
07-04-2024 10:37 PM | |||
03-14-2021 10:07 AM |
User | Count |
---|---|
24 | |
12 | |
11 | |
10 | |
9 |
User | Count |
---|---|
18 | |
14 | |
13 | |
12 | |
10 |