Firstly, I apologise - I am new to Powerpivot and have tried for a couple of hours to wrap my head around this DAX problem and I cannot afford to waste any more time getting gradually more and more confused. I desperately want somebody to give me a leg-up.
In excel. I am presenting a tables containing data A, B, C... X, Y in a table with slicers on "Type" and "Period". In the same data I am trying to create a permanent measure average of 123, for all the periods selected, without "123" selected in a slicer.
I've got as far this, but cannot figure out how to Average123 across the periods selected, so I'm getting the average across all periods.
[TABLE="class: grid, width: 200, align: left"]
<tbody>[TR]
[TD]Type[/TD]
[TD]Value[/TD]
[TD]Period[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]0.1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]10[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]100[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]0.1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]10[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]100[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]X[/TD]
[TD]0.1[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Y[/TD]
[TD]10[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]100[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]
A quick solution to this would be great, then I can trace it back to try to understand how it all works. I am now just too confused to understand what a FILTER, CALCULATE, AVERAGEX, measures, tables
Many thanks
In excel. I am presenting a tables containing data A, B, C... X, Y in a table with slicers on "Type" and "Period". In the same data I am trying to create a permanent measure average of 123, for all the periods selected, without "123" selected in a slicer.
I've got as far this, but cannot figure out how to Average123 across the periods selected, so I'm getting the average across all periods.
Av123:=AVERAGEX(FILTER(ALL(MyTable),[Type]="123"),[Value])
[TABLE="class: grid, width: 200, align: left"]
<tbody>[TR]
[TD]Type[/TD]
[TD]Value[/TD]
[TD]Period[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]0.1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]10[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]100[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]0.1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]10[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]100[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]X[/TD]
[TD]0.1[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Y[/TD]
[TD]10[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]100[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]
A quick solution to this would be great, then I can trace it back to try to understand how it all works. I am now just too confused to understand what a FILTER, CALCULATE, AVERAGEX, measures, tables
Many thanks
Last edited: