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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Anonymous
Not applicable

Show Positive and Negative for %

Hello,

I am trying to convert excel report into power bi.

I am trying to show Power BI % column SAME as Excel % column.I have used SIGN function  and FORMAT function but not getting correct result.Total row should show negative sign as well.

 

Power BI %

Excel %

A

-2.80%

-2.8%

B

1.60%

1.6%

C

-0.10%

-0.1%

D

-1.30%

-1.3%

E

5.40%

5.4%

F

-2.30%

-2.3%

Total

0.07%

-1.3%

 

***To get Power BI% =pqr/mnp

-pqr and mnp both have decimal number

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

 

 

Hi @Anonymous,

 

Be aware that the calculations in PBI don't work in the same way as in Excel, you need to create a calculated measure and not a column rewrite your formula to a measure with the following code:

 

% Calculation =SUM(Table[pqr]) / SUM(Table[mnp])

 

Then format as %.

 

Regards,

MFelix


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
MFelix
Super User
Super User

 

 

Hi @Anonymous,

 

Be aware that the calculations in PBI don't work in the same way as in Excel, you need to create a calculated measure and not a column rewrite your formula to a measure with the following code:

 

% Calculation =SUM(Table[pqr]) / SUM(Table[mnp])

 

Then format as %.

 

Regards,

MFelix


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

Hi MFelix,

Thank you so much for your suggestion.It is working perfectly fine and thank yo so much for your tips.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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