Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
User | Count |
---|---|
73 | |
70 | |
38 | |
24 | |
23 |
User | Count |
---|---|
96 | |
93 | |
50 | |
41 | |
40 |