Forum Discussion
Anonymous
5 years agoNot applicable
Items Per Order - DAX Measure
Hi Experts How would you calculate the items per order based on the sample data in the table below.. For the first Order ID we have one item ordered and the distinct count of the Order Id = 1 so...
- 5 years ago
Anonymous , Try like
divide(SumX(filter(allselected(FACTSalesOrderTable) , FACTSalesOrderTable[Order ID] = max(FACTSalesOrderTable[Order ID])), FACTSalesOrderTable[Qty]), distinctcount(FACTSalesOrderTable[Order ID]))
amitchandak
5 years agoSuper User
Anonymous , Based on what I got. I think it should be like
divide(count(FACTSalesOrderTable[Order ID]), distinctcount(FACTSalesOrderTable[Order ID]))
Anonymous
5 years agoNot applicable
Has to be the order qty assoicated with that Order ID...