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
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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.