Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Average amount per transaction DAX

Hello, my problem looks like simple, but I’m struggling to solve it.
I have Sales table.
I have the number of transactions per customer measure
Number of transactions = COUNTROWS(GROUPBY(SALES,SALES[date],SALES[Customer]))

In the same table I have Σ SalesAmount.

So my task is just to Divide([Σ SalesAmount], [Number of transactions])
Besides it gives me very small figures.
May be Should I use FILTER(SALES, SALES[SalesAmount] <> 0 ), or use groupby somewhere.

Thank you for any help.

1 Reply