Forum Discussion
Calculating Total Balances
- 9 years ago
Hi tespinal,
In the resource data, there are multiple transaction in one day. But the time is different, so you want to get the lasted transaction and sum them, right? If it is, I try to reproduce using the sample data.
Then create a measure using the following formula.
Result = CALCULATE(SUM(Table1[BALANCE]),FILTER(Table1,Table1[DATE]=CALCULATE(MAX(Table1[DATE]),ALLEXCEPT(Table1,Table1[ID]))))
Create a card used to display the result, please see the following screenshot, it returns the expected result.
Best Regards,
Angelia
Hi tespinal,
In the resource data, there are multiple transaction in one day. But the time is different, so you want to get the lasted transaction and sum them, right? If it is, I try to reproduce using the sample data.
Then create a measure using the following formula.
Result = CALCULATE(SUM(Table1[BALANCE]),FILTER(Table1,Table1[DATE]=CALCULATE(MAX(Table1[DATE]),ALLEXCEPT(Table1,Table1[ID]))))
Create a card used to display the result, please see the following screenshot, it returns the expected result.
Best Regards,
Angelia
Thanks for the feedback everyone. We were able to come up with the solution using SQL query direct from the database. I appreciate all the help.
- v-huizhn-msft9 years agoMicrosoft Employee
Hi tespinal,
I am very gald to hear you have resolve your issue, please mark the corresponding reply as answer if it's helpful, so other people will find solution easily.If you have other issues, please let me know.
Best Regards,
Angelia