March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi
I have a table that consists of 2 columns (Type,Value) there are some values that are blank means they are Zeros
I want to calculate the average of values including the blanks (ex Average of type A = (0.5+0.2+0)/3 not (0.5 +0.2)/2
I tried
type | value |
A | 0.5 |
A | 0.2 |
A | |
B | 0.8 |
B | 0.1 |
C | |
D | 0.3 |
E | 0.4 |
F | 0.2 |
F |
Solved! Go to Solution.
values ignores blanks, it would be best to set those blank values to 0 or use distinctcount which counts blanks
Proud to be a Super User!
values ignores blanks, it would be best to set those blank values to 0 or use distinctcount which counts blanks
Proud to be a Super User!
User | Count |
---|---|
117 | |
77 | |
58 | |
52 | |
46 |
User | Count |
---|---|
171 | |
117 | |
63 | |
57 | |
51 |