How to sum only the value, for each OrderNumber, of the latest date?
I’m working with a dataset like the one below, where I’ve all the transactions (OrderKey) for each Order (Order Number) and I want to sum the column “Value” to see what is my Revenue, but the Order can have more than one transaction recorded, this happens because the server retries the transaction if the transaction was not completed, as you can see as “OrderNumber_#”.
I have to sum only the value, for each OrderNumber, of the latest date. I did a highlight in the values that I want to sum.
Can someone help me with this matter?
So in summary I want a KPI with the SUM of the specific Values, in this case would be 2.390 (90+300+700+300+1000= 2.390)