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
AbbasG
Memorable Member
Memorable Member

Cannot Convert value of type text to type true false (While setting up rls)

Hello there,

 

I have a sales report, wherein I have defined RLS for each salesperson.

 

Now, One of the salespeople is on leave, and I want to give access to his report to another salesperson.

 

I am trying to revise the RLS as below

 

[Salesperson_Code] = "AB" && [Salesperson_Code] = "AS"

 

But then it shows the below error. Please help in fixing it.

AbbasG_0-1660725436210.png

 

 

2 ACCEPTED SOLUTIONS
onurbmiguel_
Super User
Super User

Hello AbbasG

Can the salespeson have two codes at same time? 

could be an OR ? 

[Salesperson_Code] = "AB"  ||  [Salesperson_Code] = "AS" 

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! ;-
Best Regards
BC

 


Best regards


Bruno Costa | Super User


 


Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!! 


Take a look at the blog: PBI Portugal 


 


View solution in original post

OzkanDhont
Resolver II
Resolver II

Hi @AbbasG !

 

I'm not sure if this is correlated but [Salesperson_Code] can't be two values at once.

I believe it has to be:

[Salesperson_Code] = "AB" || [Salesperson_Code] = "AS"

 Does this solve the issue?

 

If not than could you give us the type of of [Salesperson_Code]?

 

Kind regards,

OD

View solution in original post

5 REPLIES 5
OzkanDhont
Resolver II
Resolver II

Hi @AbbasG !

 

I'm not sure if this is correlated but [Salesperson_Code] can't be two values at once.

I believe it has to be:

[Salesperson_Code] = "AB" || [Salesperson_Code] = "AS"

 Does this solve the issue?

 

If not than could you give us the type of of [Salesperson_Code]?

 

Kind regards,

OD

@OzkanDhont Thank you so much it solves my problem

onurbmiguel_
Super User
Super User

Hello AbbasG

Can the salespeson have two codes at same time? 

could be an OR ? 

[Salesperson_Code] = "AB"  ||  [Salesperson_Code] = "AS" 

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! ;-
Best Regards
BC

 


Best regards


Bruno Costa | Super User


 


Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!! 


Take a look at the blog: PBI Portugal 


 


@onurbmiguel_ thank you so much for your effort. it solves my problem.

Hi again

Can you also accept my answer , i send you first the solution.

 

BR 

Bruno 

 


Best regards


Bruno Costa | Super User


 


Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!! 


Take a look at the blog: PBI Portugal 


 


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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

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.