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]))
Anonymous
5 years agoNot applicable
Not getting the right answer.....i am expecting the results as per the table....
amitchandak
Super User
5 years agoAnonymous , Try like
divide(SumX(filter(allselected(FACTSalesOrderTable) , FACTSalesOrderTable[Order ID] = max(FACTSalesOrderTable[Order ID])), FACTSalesOrderTable[Qty]), distinctcount(FACTSalesOrderTable[Order ID]))