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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ivancespedesl
Helper I
Helper I

Average of a measure with several count and sum

I have two identical measures, one with COUNT and another with SUM. The measure is the following:

 

Mix. =
COUNT('Data clientes lunes por 12 meses'[Cant_CA])+
count('Data clientes lunes por 12 meses'[Cant_CC])+
count('Data clientes lunes por 12 meses'[Cant_CD])+
count('Data clientes lunes por 12 meses'[Cant_MC])+
count('Data clientes lunes por 12 meses'[Cant_NE])+
count('Data clientes lunes por 12 meses'[Cant_PR_Com])+
count('Data clientes lunes por 12 meses'[Cant_PR_Hip])+
count('Data clientes lunes por 12 meses'[Cant_PR_Hip])+
count('Data clientes lunes por 12 meses'[Cant_PR_LC])+
count('Data clientes lunes por 12 meses'[Cant_PR_Per])+
count('Data clientes lunes por 12 meses'[Cant_PR_Tie])+
count('Data clientes lunes por 12 meses'[Cant_PR_Vh])+
count('Data clientes lunes por 12 meses'[Cant_TC])
 
I made a graph with this data and I want to know the average at each point. How can I do this? Also, i tried creating a column but it aggregated everything. Here is the pic:
 
 
3 REPLIES 3
amitchandak
Super User
Super User

I think we need more info but.

if you have count and Sum then you can get it by divide

Avg = divide(_count,_sum)

If possible please share a sample pbix file after removing sensitive information.

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
https://community.powerbi.com/t5/Community-Blog/Power-BI-Working-with-Non-Standard-Time-Periods/ba-p...
https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

v-eachen-msft
Community Support
Community Support

Hi @ivancespedesl ,

 

Could you please share your sample data and excepted result to me if you don't have any confidential information. Please upload your files to One Drive and share the link here.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
az38
Community Champion
Community Champion

Hi @ivancespedesl 

you havent attach the pic

anyway, for me it looks like your statement has no sense. each count in your formula should be the same

could you please, share a sample of desired output?

do not hesitate to give a kudo to useful posts and mark solutions as solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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