Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
eah
Frequent Visitor

How to return last registered value if there is no value registered in specific year

In my data-table I have one column for Incoming balance, one column for change and one column for Closing balance. As you can see below for AccountNumber 1070, the closing balance of 2018 is the same as the incoming balance for 2019. This happens because my transaction table returns incoming balance and closing balance for every change that occurs on all accounts.

 

But for 2020 there has not been registered any movement on the specific accountnumber, thus there is no transactions on that specific account in my table and the incoming balance for 2020 is empty. How can I make a DAX-expression that returns the last registered value for all accounts as incoming balance? 

 

balance.png

 

I.e. let's say the change in 2020 equals 100.000, the closing balance of 2020 would be 381.435 and it should be returned as incoming balance for 2021. 

 

Let me know if you want more information!

1 REPLY 1
lbendlin
Super User
Super User

Show your measure.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.