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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.