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
Skelkorg
New Member

Latest total value

I'm trying to create a table where I get the latest balance of all accounts, and made the following measure: 

 

Bal = CALCULATE(SUM('Erp CashBHed'[ClosingBalance]);FILTER('Erp CashBHed';'Erp CashBHed'[ClosingDate]=MAX('Erp CashBHed'[ClosingDate])))

 
However, when I do that, two (unwanted) things happen:
a) The total for the table is the sum of ClosingBalance for the latest ClosingDate, not the sum ClosingBalance for the latest ClosingDates for each account. All accounts do not necessarily have the same ClosingDate.
b) The data is formatted on an axis graph as well with year and month to show trendline, however if there is no data for that month, it does not show up in the total balance, even though it should use the balance for last month (which is more or less the same issue as a) )
 
How could I fix it to show what I need?
0 REPLIES 0

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.