Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
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 average across Measurements 1 through 4
I know this is simple but I am new to DAX
Solved! Go to Solution.
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.
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.
worked perfectly. Thanks!
@Anonymous
Can you try any of the following options:
Average = ([Measurement 1] + [Measurement 2] + [Measurement 3] + [Measurement 4]) / 4
Average = DIVIDE([Measurement 1] + [Measurement 2] + [Measurement 3] + [Measurement 4], 4)
The null value is a 0 so it doesn't work. Any other ideas?
@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
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 46 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 67 | |
| 32 | |
| 27 | |
| 26 |