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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
emma313823
Helper V
Helper V

Syntax error

Hi All

 

I am using the Manage Roles feature in Power BI Desktop and all is great until I needed to have multiple fields included from the table I'm working with.  I bumped into a syntax error.  I'm an extreme novice with Dax and would appreciate some help.

 

I have a role I'm trying to create which includes two territories.  I thought I had it, however the app indicates the syntax is wrong.  So for salesperson A...the role needs to be that they can see only data from territories PA and MID.

 

[Territory] = "PA";"MID"

 

Would anyone be able to tell me when I'm creating a role with the need for multiple criteria from one column/field...how would I modify this syntax to get it right?

 

Emma

Emma
1 ACCEPTED SOLUTION
idanco
Advocate II
Advocate II

[Territory] = "PA" || [Territory] = "MID"

View solution in original post

1 REPLY 1
idanco
Advocate II
Advocate II

[Territory] = "PA" || [Territory] = "MID"

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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