Forum Discussion
apoje
6 years agoHelper II
Duplicate values in multiple rows - calculation problem
Hi, ERP returns me a sales dataset that for each item in the order returns a row in a dataset, which specifies quantity, id and the rest... however this row also contains the total order value. S...
- 6 years ago
I guess I'm going to solve it for myself :)
MaxOrderAmount = MAX('Sharepoint-RAW-data-link'[OrderAmount.grossTotal]) GrossTotalOrderAmountD = SUMX(DISTINCT('Sharepoint-RAW-data-link'[Order.id]),[MaxOrderAmount])
apoje
6 years agoHelper II
I guess I'm going to solve it for myself :)
MaxOrderAmount = MAX('Sharepoint-RAW-data-link'[OrderAmount.grossTotal])
GrossTotalOrderAmountD = SUMX(DISTINCT('Sharepoint-RAW-data-link'[Order.id]),[MaxOrderAmount])