cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kate Frequent Visitor
Frequent Visitor

How to add a plus sign before positive numbers?

Adding a plus sign to positive numbers

 

 

Hi!

Is it somehow possible to automatically add a plus sign to the data in a table, which contains both positive and negative numbers, and retain the format (percentage)? 

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
v-yulgu-msft Super Contributor
Super Contributor

Re: How to add a plus sign before positive numbers?

Hi @Kate,

 

You can create a calculated column via this formula:

Col2 = IF(Table1[Col1]>0, "+"&Table1[Col1],FORMAT(Table1[Col1], ""))

1.PNG

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
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-yulgu-msft Super Contributor
Super Contributor

Re: How to add a plus sign before positive numbers?

Hi @Kate,

 

It is not possible to add a plus sign to positive numbers. If you add such a plus sign, the data type of field will be converted to Text rather than numeric.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Kate Frequent Visitor
Frequent Visitor

Re: How to add a plus sign before positive numbers?

Thank you! I just wanted to make such  a column for my visualization, in which the type of data wouldn't matter.

v-yulgu-msft Super Contributor
Super Contributor

Re: How to add a plus sign before positive numbers?

Hi @Kate,

 

You can create a calculated column via this formula:

Col2 = IF(Table1[Col1]>0, "+"&Table1[Col1],FORMAT(Table1[Col1], ""))

1.PNG

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
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

Helpful resources

Announcements
October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 154 members 1,588 guests
Please welcome our newest community members: