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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
tebtim19
Helper IV
Helper IV

Average of count

I have a card in Power BI which is the comes from the count of all employees. But I want it to show as percentage in card is that possible?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @tebtim19 ,

 

What exactly do you need? Average of count or average of percentage?

percentage = SELECTEDVALUE('Table'[count])/CALCULATE(SUM('Table'[count]),ALL('Table'))

average of percentage = AVERAGEX('Table',[percentage])

5.PNG

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

9 REPLIES 9
amitchandak
Super User
Super User

@tebtim19 , percent of what ?

The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Okay for example I put a card then add count of employees. but I want to show it as Average? 

Hi. Is there any condition for this percentage? The average you are looking for is only available in numbers and employee column is not. It's not quite clear what kind of percetage you want. I am writting down a classic formula for a measure to calculate the % total general of employees in the dataset.

% Employees =
DIVIDE(
    COUNT(Table[Employee]),
    CALCULATE( COUNT(Table[Employee]), ALL(Table) ),
    0
)

There are better ways to calculate this but I'm not sure if this is what you are looking for.

 

Regards, 


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

I tried what you told me, but I dont understand why I only get 1% in the card when I put the measure

Anonymous
Not applicable

Hi @tebtim19 ,

 

What exactly do you need? Average of count or average of percentage?

percentage = SELECTEDVALUE('Table'[count])/CALCULATE(SUM('Table'[count]),ALL('Table'))

average of percentage = AVERAGEX('Table',[percentage])

5.PNG

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

I tried to do the average of count but I only get Can't display the visual. when I put added it to the card

 
 

Try Following 

 

Average = AVERAGEX(VALUES(Table[Manager]),[FemaleCountMeasure])

 







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




Anonymous
Not applicable

Hi @tebtim19 ,

 

You can click "show details" to check the error message.

6.PNG

And what your table looks like? Better to show some sample data to us as i did above.

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

This might be because of two things. One is the formatting, consider formatting the measure as % or add decimals to avoid power bi rounding up your number.

https://community.powerbi.com/t5/Desktop/Percentage-formatting-for-calculated-measures-in-table/td-p...

The other thing can be because unless you filter something you will have a 100% because the calculation is FilteredEmployees / AllEmployees

That is what I understood about the measure.

Regards,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors