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 August 31st. 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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.