Hi,
I am using Excel PowerPivot from the tabular data model and need to do average on distinct records, although I have gone trough with many suggestions are available online, but not getting the correct output.
Sample table
prod | qty |
Apple | 10 |
Apple | 15 |
Apple | 10 |
Organe | 5 |
Organe | 12 |
Organe | 12 |
Organe | 12 |
Banana | 8 |
Banana | 8 |
Result I am getting
prod | my_avg_qty_return |
Apple | 10.22222 |
Orange | 10.22222 |
Banana | 10.22222 |
Result I am expecting
prod | avg_qty_expected |
Apple | 11.66667 |
Orange | 10.25 |
Banana | 8 |