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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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