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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Need Help to summing up values with percentage

Here Column A (getting Sum of group database value of column 0 or 1 )

Column B (getting Sum of group database value of column 0 or 1 )

So This is How 

Row 1 coming as A=5341 and B=75

 

Need Help is , I want to get divide this B/A and value should be in percentage 

example = Row 1 value = 75/5341 value should come as 1.4% as for all rows

 

Help1.png

 

what ever value of (SUM of B )/(Sum of A) come, its should give me result in Percentage ?

 

How to do in power baased on value come on Colmn A and B , want to have percentage 

 

B/A= value 2 decimal point % 

 

4 REPLIES 4
v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

Just use this formula to create a measure then modeling the format of the value as below:

10.JPG

Result:

11.JPG

 

Best Regards,

Lin

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

Thanks for reply, But its getting NaN , becuase as said some values in Database are 0 or Some are 1

Help2.png

So In last Column A and B , if we are getting postive results putting as 1 or wise versa as 0

 

So in Design view, we are jus suming up , so that how it coming Column A and Column B value 

Help1.png

So as we need percentage of it , so in last if we do in when we modeling data , in data sheet we will have all 0 or 1 in last also 

 

So what i thinking of in run time can we get column C value based on Column A and B outcome ?

 

 

 

hi, @Anonymous 

Yes, If you could try this formula to create a measure

Measure = DIVIDE(CALCULATE(SUM('Table'[B])),CALCULATE(SUM('Table'[A])),0)

and if possible, please share your simple sample pbix file and expected output, just from the screenshot, we couldn't find out why result are all NaN.
Please see this post regarding How to Get Your Question Answered Quickly:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

You can upload it to OneDrive and post the link here. Do mask sensitive data before uploading.

 

Regards,

Lin

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

Basically value i looking from is Derived value that will come from Column A and Column B

 

Value should like  Column B/  Column A = Answer in Percentage 

 

Note : I tried Divide Function but fail to achive the result

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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