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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live 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
December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.