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.
Goodday,
I want to calculate an average in a column which has blank values.
Basically i want the formula to only count the rows with values and ignores the ones that don't.
Solved! Go to Solution.
Hi @RvdHeijden,
You can create a measure using the formula as follows, then you can create a card visual to display the result.
average = DIVIDE ( CALCULATE ( SUM ( Table[column] ), ALL ( Table ) ), CALCULATE ( COUNT ( Table[Column] ), Table[Column] <> BLANK () ) )
Please replace the 'Table' and 'column' name as your table name and column name.
Best Regards,
Angelia
Hi @RvdHeijden,
You can create a measure using the formula as follows, then you can create a card visual to display the result.
average = DIVIDE ( CALCULATE ( SUM ( Table[column] ), ALL ( Table ) ), CALCULATE ( COUNT ( Table[Column] ), Table[Column] <> BLANK () ) )
Please replace the 'Table' and 'column' name as your table name and column name.
Best Regards,
Angelia
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 |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |