Forum Discussion
rolf1994
Helper II
9 years agoCalculated total showing the wrong number in directquery
Hi, I am trying to calculate the following: Measure DistinctQuantity = CALCULATE(DISTINCTcount([Id]),[IsActive]="Active") Measure TotalPrice= DistinctQuantity*sum(Price) My data looks like th...
- 9 years ago
In this scenario, you TotalPrice should be eavaluated on each row level, so you should use SUMX() function.
Total Price = SUMX(Table3,Table3[Price]*[Total Quantity])
Regards,
v-sihou-msft
Microsoft Employee
9 years ago
In this scenario, you TotalPrice should be eavaluated on each row level, so you should use SUMX() function.
Total Price = SUMX(Table3,Table3[Price]*[Total Quantity])
Regards,