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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.