cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
angevin17
Microsoft
Microsoft

How to compute percentage of column

Hello,

I have a column in a table called name and that is accociated with another column called count. I'm trying to make a new column/measure that finds the total count and then divides each count row by that total count.

I made a quick example below:

I have the name and count columns. I want to add the count column and then divide each count row by that total count.

angevin17_0-1627602338249.png

 

 

Thank you so much!

1 ACCEPTED SOLUTION
Jihwan_Kim
Community Champion
Community Champion

Picture1.png

 

Percentage CC =
DIVIDE(Data[Count], SUM(Data[Count]))
 
 
 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

Best regards, JiHwan Kim

Linkedin: https://www.linkedin.com/in/jihwankim1975/

Twitter: https://twitter.com/Jihwan_JHKIM

View solution in original post

2 REPLIES 2
Jihwan_Kim
Community Champion
Community Champion

Picture1.png

 

Percentage CC =
DIVIDE(Data[Count], SUM(Data[Count]))
 
 
 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

Best regards, JiHwan Kim

Linkedin: https://www.linkedin.com/in/jihwankim1975/

Twitter: https://twitter.com/Jihwan_JHKIM

View solution in original post

ryan_mayu
Super User II
Super User II

@angevin17 

maybe you can try

countrows(table) /  calculate(countrows(table),all(table))





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

Proud to be a Super User!




Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors