Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

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 3
amitchandak
Super User
Super 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])))

Anonymous
Not applicable

hi AMit i am getting the following error usinf forst measure and the second measure give the wrong end result.

Capture.PNG

Anonymous
Not applicable

checking the second formula amit...and thanks

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.