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

How to convert negative number to text in a column

I have a column wherein I have some negative values.

I want to create another column which says if the value is negative then OFF else ON.

I am unable to do this.

Please help

1 ACCEPTED SOLUTION
jthomson
Solution Sage
Solution Sage

Try:

 

newcolumn = if ([oldcolumn]<0,"OFF","ON")

View solution in original post

1 REPLY 1
jthomson
Solution Sage
Solution Sage

Try:

 

newcolumn = if ([oldcolumn]<0,"OFF","ON")

View solution in original post

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

April Update

Check it Out!

Click here to read more about the April 2021 Updates!

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.