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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
powerbidev123
Resolver II
Resolver II

Convert boolean value using Value function

Hi Community,

 

I am getting this error as I am trying create a calculated column and convert Boolean value to string for comparing it with text value in another column.

 

powerbidev123_0-1733813216942.png

 

Below is the sample dataset screenshot

powerbidev123_1-1733813314305.png

Any help will be appreciated as to how to rectify this error

1 ACCEPTED SOLUTION

If the exception column is a true/false type, which it looks like it is, then I don't think you need the VALUE function. You should just be able to compare the exception column to TRUE().

View solution in original post

5 REPLIES 5
johnt75
Super User
Super User

You've got a single &, that's the concatenation operator. You need &&, which is logical AND.

Hi @johnt75 , I have corrected it to &&, still getting the same error

If the exception column is a true/false type, which it looks like it is, then I don't think you need the VALUE function. You should just be able to compare the exception column to TRUE().

Thanks @johnt75 , this worked. But still don't know how. Because we didn't convert the Boolean type to text and compared it to text value

I think its because VALUE expects a text value and you were passing in a boolean. The error message could be phrased better.

Helpful resources

Announcements
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! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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