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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register 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_
Power Participant
Power Participant

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_
Power Participant
Power Participant

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.