Forum Discussion
zeckert
Helper I
9 years agoNeed to sum based on unique values
I have a Purchase order report that i need to be able to group by vendor but there is multiple rows for one PO due to line items. There is a column that has the final amount but I keep getting it co...
Vvelarde
Community Champion
9 years ago
Hi,
Try with this Measure:
TotalOrderAmount = SUMX(DISTINCT(Table1[PO#]),CALCULATE(AVERAGE(Table1[Order Amount])))
Regars
Victor
Lima - Peru
NaveenVerma
7 years agoRegular Visitor
Hi Vvelarde,
Can we also use filter in the below formula?
TotalOrderAmount = SUMX(DISTINCT(Table1[PO#]),CALCULATE(AVERAGE(Table1[Order Amount])))
Regards,
Naveen Verma