Forum Discussion
Calculating Average excluding MEASURE data
- 5 years ago
hackfifi
I forgot to remove the variable, as it always stays static, please check now:Avg PF (Excluded) = AVERAGEX( FILTER(ALL(Table2[Project]),[Exclude] <> 1), [PF] )________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
hi Fowmy ...kindly note PF is a measure, so i modified your formula as below
hackfifi
Then use it this way, if it doesn't work, show the expected results based on your sample.
Avg PF (Excluded) =
VAR __Exclude = [Exclude] RETURN
AVERAGEX(
FILTER( ALLSELECTED(Table2), __Exclude <> 1),
[PF]
)________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
- Fowmy5 years agoSuper User
hackfifi
I forgot to remove the variable, as it always stays static, please check now:Avg PF (Excluded) = AVERAGEX( FILTER(ALL(Table2[Project]),[Exclude] <> 1), [PF] )________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
- hackfifi5 years agoHelper V
Fowmy - Based on the sample, the expected result should be the average of the exclude <> 1 i.e. (1.54 + 2.59) / 2 = 2.07
Currently the result of your formula is still the average of the 3 data points i.e. (2.47+1.54+2.59)/3 which is 2.20
Hope that is clear, and thanks again for your time.