Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I am trying to get the total amount from the latest transaction for all clients. See below for the sample table:
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):
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!
Solved! Go to Solution.
write another measure like this
Fixed = SUMX(VALUES(Sheet1[Client]), [_Latest amount])
write another measure like this
Fixed = SUMX(VALUES(Sheet1[Client]), [_Latest amount])
Thank you so much! This helps a lot! 🙂
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
93 | |
75 | |
62 | |
50 |
User | Count |
---|---|
147 | |
107 | |
105 | |
87 | |
61 |