Forum Discussion
Anonymous
5 years agoNot applicable
4 column average
I have the following information: measurement 1 measurement 2 measurement 3 measurement 4 3 4 2 (null) 6 5 4 2 3 5 4 2 1 2 3 5 I need PBI to calculate the averag...
- Anonymous5 years ago
Hi Anonymous ,
Here are the steps you can follow:
1. Create calculated colum.
Average = var _count=IF([measurement 1]=BLANK(),0,1)+IF([measurement 2]=BLANK(),0,1)+IF([measurement 3]=BLANK(),0,1)+IF([measurement 4]=BLANK(),0,1) return ([measurement 1]+[measurement 2]+[measurement 3]+[measurement 4])/_count2. Result
You can downloaded PBIX file from here.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
5 years agoNot applicable
The null value is a 0 so it doesn't work. Any other ideas?
themistoklis
5 years agoCommunity Champion
Anonymous
Do you mean that you dont want to include in the average the null values.
For example the first row must be divided by 3 and not 4