Forum Discussion
AVERAGE
- 8 years ago
Hi BLM
I have uploaded a simple PBIX file using your sample data set and it shows the measure working. The only way it can come up with another figure is if there is other data in the model that we can't see. Have a look at this and see what you think.
https://1drv.ms/u/s!AtDlC2rep7a-oi35BPacpxPxFVty
HI BLM
A calculation to find the average of the [Unidades] column per [CodArticulo] is as follows: but this looks like what you have. What is the number you are expecting?
media =
CALCULATE(
AVERAGE('Table1'[Unidades]),
FILTER(
ALLSELECTED(Table1),
'Table1'[CodArticulo] = MAX('Table1'[CodArticulo]
)
)
)- BLM8 years agoHelper I
Yes, i'm expecting the average per CodArticulo, but your formula don't work. I attached image with the result.
The values that I expected are in the first image that I attached.
thank
- Ashish_Mathur8 years agoSuper User
Hi,
Share the link from where i can download your file.
- Phil_Seamark8 years agoMicrosoft Employee
Hi BLM
I have uploaded a simple PBIX file using your sample data set and it shows the measure working. The only way it can come up with another figure is if there is other data in the model that we can't see. Have a look at this and see what you think.
https://1drv.ms/u/s!AtDlC2rep7a-oi35BPacpxPxFVty