The avarage cost doesn't work - see beneath:
The cost is calculated from quantity and line amount.
The avarage cost is calculated as (but it does not work - in the above photo the avarage cost is 343,33 but i'll think it is wrong and it should be 408):
According to your description, my understanding is that you want to calculate the average data based on the item id. In this scenario, we can use the following DAX query:
Average cost = CALCULATE(AVERAGE(Excel[Cost]),FILTER(ALLEXCEPT(Excel,Excel[Item ID]),'Dates'[MonthYear] = thisYear))
I cannot use the DAX query - it tells me following:
Hope you can help me
Engage and empower students with Power BI!
Continue your learning in our online communities.
Travel to Melbourne and network with thousands of peers!
Check out what's new in the Power BI Community!