Forum Discussion
Kimbornhoft
9 years agoHelper I
Incorrect calculated measure total
Hi, I have a new measure Total Shipped Value = (sum(REV_HistoryReport[Total Li Valu Amt]) /sum(REV_HistoryReport[Ord Bill Unit Qty]) * sum(OpenOrders[Qty Filled])) which works correctly ...
Anonymous
9 years agoNot applicable
I'm not totally sure which table we are talking about, but... errr, uhh... if we are talking about double rows in REV_HistoryReport, maybe inside the CALCULATE divide by COUNTROWS(REV_HistoryReport) ?
Kimbornhoft
9 years agoHelper I
I have used this string,
Total Shipped Value = SUMX(REV_HistoryReport, CALCULATE(sum(REV_HistoryReport[Total Li Valu Amt])/sum(REV_HistoryReport[Ord Bill Unit Qty]) * sum(OpenOrders[Qty Filled])))
but I'm not sure where to incorporate the count rows Could you help with this?
- Kimbornhoft9 years agoHelper I
You were right in assuming it is the REV history report.
- Anonymous9 years agoNot applicable
Total Shipped Value =
SUMX (
REV_HistoryReport,
CALCULATE (
SUM ( REV_HistoryReport[Total Li Valu Amt] )
/ SUM ( REV_HistoryReport[Ord Bill Unit Qty] )
* SUM ( OpenOrders[Qty Filled] )
/ COUNTROWS(REV_HistoryReport)
)
)- Kimbornhoft9 years agoHelper I
Unfortunately, formula still isn't returning the correct values. I'm not sure where to go next.