Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
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