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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.