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
MarkusHaas
Regular Visitor

Percentage out of two collums

 Hi, I have two columns, "Total" and "Done". I want to calculate the Percentage, if "Total" is 4 and "Done" is 2 it gets 50%.

In the end I would like to have this in a stacked column chart.

Can anyone help?

1 ACCEPTED SOLUTION

Thanks, but I solved it with the DIVIDE() Function because it can handle Errors, such as "Divide by 0".

 

Percentage = DIVIDE(table[Done],table[Total],0)

View solution in original post

3 REPLIES 3
MarkusHaas
Regular Visitor

Hi, I have two columns "Total" and "Done". I would like to calculate the percentage, that if "Total" is 4 and "Done" is 2 it gets 50%.

Also I would like to have this into a stacked column chart. Thanks!

Anonymous
Not applicable

Hello @MarkusHaas

 

Try this

 

% Percentage=SUM(Done) / SUM(Total)

 

Hope this was helpful

Thanks, but I solved it with the DIVIDE() Function because it can handle Errors, such as "Divide by 0".

 

Percentage = DIVIDE(table[Done],table[Total],0)

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.