Hi, try adding two levels of DataItem (same table), using the Max method at the root level to collect lines, and then using Sum method in the child DataItem to get the total amount.
Sorry the example is not exactly the same, it is somewhat similar to the following.
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.