Forum Discussion
Convert Calculated Column measure formula error
Hi Experts
How could i amend the current measure which work fine in IMPORT mode - to work in DIRECT QUERY Mode...
AOV = CALCULATE(SUM(FACTSalesOrderTable[Gross_Order_Value]),ALLEXCEPT(FACTSalesOrderTable,FACTSalesOrderTable[increment_id]))
3 Replies
- amitchandakSuper User
Anonymous , This should work as a measure in direct query , are you facing any issue
AOV = CALCULATE(SUM(FACTSalesOrderTable[Gross_Order_Value]),
ALLEXCEPT(FACTSalesOrderTable,FACTSalesOrderTable[increment_id]))
or
AOV = CALCULATE(SUM(FACTSalesOrderTable[Gross_Order_Value]),
filter(allselected(FACTSalesOrderTable),FACTSalesOrderTable[increment_id] = max(FACTSalesOrderTable[increment_id])))
- AnonymousNot applicable
checking the second formula amit...and thanks
- AnonymousNot applicable
hi AMit i am getting the following error usinf forst measure and the second measure give the wrong end result.