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

html:
Carousel MBAS ARun Part 1 768x460

MBAS 2021

Join Arun Ulagaratchagan and the Power BI team at MBAS! #MSBizAppsSummit #CommunityRocks

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!