I want to create a measure in Power Bi that finds the average of the total_spend for each ID. My table looks like this:
| ID | Total_Spend |
|---|---|
| 1234 | £34.00 |
| 1234 | £34.00 |
| 1234 | £ 34.00 |
| 4325 | £ 56.00 |
| 4325 | £ 56.00 |
| 4325 | £ 43.00 |
| 4325 | £ 43.00 |
| 5678 | £ 12.00 |
| 5678 | £ 12.00 |
I've tried:
AvgIDSpend=
AVERAGEX (
SUMMARIZE (
Table,
Table[ID],
"Total Average", SUM( DISTINCT ( Table[Total_spend] )
),
[Total Average]
)
But got this error- The SUM function only accepts a column reference as an argument.