Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
How to calculate the average x row for this table, using calculated column?
A | B | C |
32 | 15 | |
24 | 16 | 8 |
Solved! Go to Solution.
Column =
VAR _numerator = 'Table'[A] + 'Table'[B] + 'Table'[C]
VAR _denominator = INT('Table'[A] <> 0) + INT('Table'[B] <> 0) + INT('Table'[C] <> 0)
RETURN
DIVIDE(_numerator, _denominator)
Please don't forget to accept the message as a solution for community visibility.
P.S. Check out my showcase report - got some high level stuff there. Sure you will find there a lot of cool ideas. Please give it a thumbs up over there if you liked it 🙂
https://community.powerbi.com/t5/Data-Stories-Gallery/SpartaBI-Feat-Contoso-100K/td-p/2449543
Almost that, but note that in the calculation values 0 (zero) or empty cells must be disregarded
Column =
VAR _numerator = 'Table'[A] + 'Table'[B] + 'Table'[C]
VAR _denominator = INT('Table'[A] <> 0) + INT('Table'[B] <> 0) + INT('Table'[C] <> 0)
RETURN
DIVIDE(_numerator, _denominator)
Please don't forget to accept the message as a solution for community visibility.
P.S. Check out my showcase report - got some high level stuff there. Sure you will find there a lot of cool ideas. Please give it a thumbs up over there if you liked it 🙂
https://community.powerbi.com/t5/Data-Stories-Gallery/SpartaBI-Feat-Contoso-100K/td-p/2449543
SPARTABI THANK YOU SO MUCH!! YOU ARE AWESOME!!!