DAX code
Average Order Value =
VAR TotalRevenue = [Total Sales]
VAR OrderCount = [Total Orders]
RETURN
-- DIVIDE returns BLANK() instead of erroring when OrderCount is 0
DIVIDE(TotalRevenue, OrderCount)
Divides total revenue by the number of orders to get revenue per order.
Type your table and column names once. Every measure below updates.
Average Order Value =
VAR TotalRevenue = [Total Sales]
VAR OrderCount = [Total Orders]
RETURN
-- DIVIDE returns BLANK() instead of erroring when OrderCount is 0
DIVIDE(TotalRevenue, OrderCount)
Depends on the Total Sales and Total Orders measures from this library - create those first, or inline their expressions.
Browse all 175 measures in the Power BI DAX Measures Library, or search the library for something similar to Average Order Value.