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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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