Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ivancespedesl
Helper I
Helper I

Count cells, add it in another cell and then make an average per customer

Hi,

 

Im trying to get an average of products per clients. I have the following formula

 

Average products=

VAR Count Cantidad productos = COUNTA('blabla'[Cant_CA]) + COUNTA('blabla'[Cant_CC]) + COUNTA('blabla'[Cant_TC]) + COUNTA('blabla'[Cant_CD])

 
return
calculate(average(count_cantidad_productos),filter('table'[clients]))
 
I had something like but it didnt work.
 
 
Please help me.
 
 
Regards,
 
IC
2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@ivancespedesl 

 

You may try AVERAGEX.

https://community.powerbi.com/t5/Desktop/Average-of-a-measure-for-each-value-of-the-years/m-p/312310...

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-chuncz-msft ,

I tried this but it still doesnt work, I really dont understand why. I even changed counta to countax in order to get the row logic. However, it still gives me the average result as the sum of all the products. Maybe I didnt explain myself well enough. This should be the average per customer, so maybe my formula doesnt explain that I want to get the amount per client. Once again, my formula:


Promedio Productos =

VAR productos_total =
COUNTAX('blabla','blabla'[Cant_CA]) +
COUNTAX('blabla','blabla'[Cant_CC]) +
COUNTAX('blabla','blabla'[Cant_TC]) +
COUNTAX('blabla','blabla'[Cant_CD])

return
AVERAGEX('blabla',productos_total)

 

Thanks in advance,

 

IC

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.