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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
FOliveira
Frequent Visitor

Error in PowerQuery We cannot convert a value of type Record to type Logical

Hello everyone,

 

I have this error when trying to add a Custom Column

FOliveira_0-1744353509883.png

 

The new column shows error and the error is:

FOliveira_1-1744353578105.png

 

Any help would be much appreciated

 

1 ACCEPTED SOLUTION

Hi @FOliveira 

I think this might be the error - [#"BYOD(8)" = "corp"], that basically means your Record name is #"BYOD(8)" = "corp" but it is "BYOD(8), so -->
Should be just [#"BYOD(8)"]  = "corp"
Thanks.

Sundar Rajagopalan

View solution in original post

3 REPLIES 3
FOliveira
Frequent Visitor

I apologize, but I forgot to add the Query:

= Table.AddColumn(#"Filtered Rows", "Custom", each if [#"Type(3)"] = "user" and [#"Internal/External(4)"] = "internal" and [#"Position(5)"] = "office" and [#"BYOD(8)" = "corp"] then "HybridWorkers" else "Empty")

Hi @FOliveira 

I think this might be the error - [#"BYOD(8)" = "corp"], that basically means your Record name is #"BYOD(8)" = "corp" but it is "BYOD(8), so -->
Should be just [#"BYOD(8)"]  = "corp"
Thanks.

Sundar Rajagopalan

Sorry again, the ] was out of place...

Helpful resources

Announcements
FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.