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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
DanielAd
New Member

Create Roles with multiple condition with DAX

Hello guys,

Please I want to create a role on my data to implement LRS. Is it possible to add multiple conditions using the && (AND) operator in DAX? if yes, how can I implement it?

 

I have done something like this ==> [UserId] = "Particular User Id" && [DepartmentId] = "Department Id"

 

 

3 REPLIES 3
nandukrishnavs
Super User
Super User

@DanielAd 

 

Yes, It is possible.

nandukrishnavs_0-1607525941605.png

You can use multiple conditions. Also, you can write DAX expressions using multiple variables and implement some tricky logic.




Regards,
Nandu Krishna

Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 👍

Proud to be a Super User!

 


Regards,
Nandu Krishna

Thanks, @nandukrishnavs. I understand that it can be implemented on a single table. But, how can I implement it for two different tables?

 

 

@DanielAd 

 

You can select other tables and write filter conditions.

 


Regards,
Nandu Krishna

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors