Forum Discussion

DanielAd's avatar
DanielAd
New Member
5 years ago

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

  • nandukrishnavs's avatar
    nandukrishnavs
    Community Champion

    DanielAd 

     

    Yes, It is possible.

    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!

     

    • DanielAd's avatar
      DanielAd
      New Member

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