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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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