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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
ReidiLexi
New Member

Total on Measure with Max Date not reflecting correctly

I am trying to get the total amount from the latest transaction for all clients. See below for the sample table:

ReidiLexi_0-1683224530086.png

 

When creating a table in PowerBI, I get the following where the total only reflects the last 2 latest transaction (75) instead of the total of the entire records (235):

ReidiLexi_1-1683224587033.png

 

Here's my measure (Sheet1 is the table name):

_Latest amount = VAR _maxd = maxx(Sheet1, Sheet1[Date].[Date]) RETURN CALCULATE (SUMX(Sheet1, Sheet1[Amount]), Sheet1[Date] = _maxd)

Can someone help and take a look into this?

Thanks in advance!

 

 

 

 

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

write another measure like this
Fixed = SUMX(VALUES(Sheet1[Client]), [_Latest amount])

View solution in original post

2 REPLIES 2
Ahmedx
Super User
Super User

write another measure like this
Fixed = SUMX(VALUES(Sheet1[Client]), [_Latest amount])

Thank you so much! This helps a lot! 🙂

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors