Join 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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
New User****
Trying to caluclate Avearage across years by row.
Count of charge average per Year =
AVERAGEX(
KEEPFILTERS(VALUES('Calendar'[Year],)),
CALCULATE(COUNTA('armain'[charge])
))
This Quick measure works but Does not account for years where no value was calculated. Hence, Aggravated Battery was 1 for 2016, and 1for 2017. average should be 0.5.
Please help
Solved! Go to Solution.
Hi @audi357,
Count of charge average per Year = COUNTA ( 'armain'[charge] ) / DISTINCTCOUNT ( 'Calendar'[Year] )
Best regards,
Yuliana Gu
Hi @audi357,
Count of charge average per Year = COUNTA ( 'armain'[charge] ) / DISTINCTCOUNT ( 'Calendar'[Year] )
Best regards,
Yuliana Gu
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!