DAX code
Total Orders =
-- DISTINCTCOUNT avoids counting one order multiple times if it has several rows
DISTINCTCOUNT('Sales'[OrderID])
Counts each order once, even when an order has several line items.
Type your table and column names once. Every measure below updates.
Total Orders =
-- DISTINCTCOUNT avoids counting one order multiple times if it has several rows
DISTINCTCOUNT('Sales'[OrderID])
Replace 'Sales'[OrderID] with your table's unique order/transaction ID column.
Browse all 175 measures in the Power BI DAX Measures Library, or search the library for something similar to Total Orders.