Forum Discussion
Same value for all months
Hi,
How can I display same value for Average sales of 3 months measure for all the months?
Example:
Measure - Average sale of 3 months = 300
Code Month Avg Sales qty
M100 Jul 300 600
M100 Aug 300 200
M100 Sep 300 450
7 Replies
- Greg_Deckler
Community Champion
Sdhn420 Perhaps try something like:
Average = AVERAGEX(ALL('Table'),[qty]) - Sdhn420
Helper IV
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
- amitchandak
Super User
Sdhn420 , Try like
calculate(average(Table[qty]), allexcept(Table, Table[Code]))
- Sdhn420
Helper IV
amitchandak value is changing for each month 😞
- Greg_Deckler
Community Champion
Sdhn420 - Use ALLEXCEPT instead of ALL to keep the material code filter.
- Sdhn420
Helper IV
Greg_Deckler amitchandak used this calculate(average(Table[qty]), allexcept(Table, Table[Code])) but its giving different values for all the months.