Forum Discussion
Same value for all months
Greg_Deckler That kind of works. Its now showing same value across months but for all codes.
I have different material codes -
Code Month Avg Sales qty
M100 Jul 300 600
M100 Aug 300 200
M100 Sep 300 450
M200 Jul 400 200
M200 Aug 400 600
- amitchandak5 years ago
Super User
Sdhn420 , Try like
calculate(average(Table[qty]), allexcept(Table, Table[Code]))
- Sdhn4205 years ago
Helper IV
amitchandak value is changing for each month 😞
- Greg_Deckler5 years ago
Community Champion
Sdhn420 - Use ALLEXCEPT instead of ALL to keep the material code filter.
- Sdhn4205 years ago
Helper IV
Greg_Deckler amitchandak used this calculate(average(Table[qty]), allexcept(Table, Table[Code])) but its giving different values for all the months.
- v-jingzhang5 years ago
Community Support
Hi Sdhn420 I tested this measure and it worked well like below. Does your data come from the same table or from different tables? If they are in different tables, is there any relationship between them?
Regards,
Community Support Team _ Jing Zhang