Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi!
I have the following data:
Table name: Reconciliation
Date ID | Account ID | Balance |
20240101 | A | 100 |
20240201 | A | 200 |
20240301 | B | 300 |
I also have a date table connected to the Date ID
I want the function to return the last balance for the last date relative to the filtered month.
What I want
In the end I want create a matrix visual that with Dates[YYYYMM] as columns, Reconciliation[Account ID] as rows and the newly created Measure "Last Balace" as values :
202401 | 202402 | 202403 | |
A | 100 | 200 | 200 |
B | 300 |
What I've tried
I've tried this formula but it leaves the last A account Blank.
LastBalance =
CALCULATE(SUM(Reconciliation[Balance]),
Reconciliation[Date ID] = MAX(Reconciliation[Date ID]))
202401 | 202402 | 202403 | |
A | 100 | 200 | * |
B | 300 |
The Problem
This leaves the last month for the A account Empty*
Any help would be much appreciated!
Solved! Go to Solution.
It's all covered in this article
https://www.daxpatterns.com/semi-additive-calculations/
Hi,
PBI file attached.
Hope this helps.
It's all covered in this article
https://www.daxpatterns.com/semi-additive-calculations/
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.