Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi All,
I need a small help. I have a table that looks like below:
NAME | ID1 | ID2 | ID3 |
A | 1 | null | 9 |
B | 2 | 3 | 5 |
C | 3 | null | 5 |
Now, I need to create a calculated column, which is average of all id columns in each row, something like below:
NAME | ID1 | ID2 | ID3 | AVG |
A | 1 | null | 9 | 5 |
B | 2 | 3 | 5 | 3.33 |
C | 3 | null | 5 | 4 |
Is this possible to do in power bi, as I can did replace nulls with 0, but in that case my average calculations were wrong. I would be grateful if someone could guide me.
Thanks
Solved! Go to Solution.
Thanks for your quick guide. I managed to get it right as below:
The best option would be to do some manipulation of your data so you just have name, id number and value as columns and then use a matrix, but a simple sum of each column divided by a counta of each column ought to work as well
Thanks for your quick guide. I managed to get it right as below:
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
84 | |
67 | |
60 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |