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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

How to calculate row percentage

I have tried a few different formulas, but I am not able to just get the row percentage for each row. The end goal is to have the two rows displayed in a pie chart. The problem I am running into is that the percentage that it gives me is a total of the two rows, instead of dividing one row by the other. I would appreciate any help!

Thank you!

 

Attached are the two rows that I would like to get percentages for.

Capture.JPG

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Create measures

Measure = 
CALCULATE(SUM(Table1[Column1]),FILTER(ALL(Table1),[VDC Goal]="Current Employees"))

Measure 2 = 
CALCULATE(SUM(Table1[Column1]),FILTER(ALL(Table1),[VDC Goal]="Employee Hire Goal"))

Measure 3 =
IF(MAX(Table1[VDC Goal])="Employee Hire Goal",1,[Measure]/[Measure 2])

10.png11.png

 

Best Regards

Maggie

 

Community Support Team _ Maggie Li
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

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Create measures

Measure = 
CALCULATE(SUM(Table1[Column1]),FILTER(ALL(Table1),[VDC Goal]="Current Employees"))

Measure 2 = 
CALCULATE(SUM(Table1[Column1]),FILTER(ALL(Table1),[VDC Goal]="Employee Hire Goal"))

Measure 3 =
IF(MAX(Table1[VDC Goal])="Employee Hire Goal",1,[Measure]/[Measure 2])

10.png11.png

 

Best Regards

Maggie

 

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

Greg_Deckler
Community Champion
Community Champion

In the Fields area, click the little drop down next to the column and choose "Show As | Percentage of row" or Percent of total



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

I only have "Percentage of Grand Total" on the drop down menu.

 

Thank you for the reply!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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 Kudoed Authors