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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
SumayyaSayyad4
Frequent Visitor

Is Union Function work while creating Roles

We have 200+ client role, where we want to union two table while specifying the filter is , Union, calculate, Evaluate, Filter is work while applying the static RLS

1 ACCEPTED SOLUTION

HI, @SumayyaSayyad4 

 

if my solution helps you in any way, hit 👍. and accept it as a solution. 


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


View solution in original post

4 REPLIES 4
SumayyaSayyad4
Frequent Visitor

@rubayatyasmin hey, I'm using import mode, i want to join two table in manage role dax expression box,

Creating 200+ roles and having each role Union and multiple filter is impact my performance in reporting?

Even though you use import, UNION won't support RLS. The documentation is referring so. If you read it you will see it. 

 

As far performance, if your RLS is a  complicated and effects more DAX measures then it can lead to performance issue. Also, look for data model performance. It will also depend on the number of users. If your data model is not slow then performance should not be that bad. But tile refresh will take time. 

 

Here is a documentation to better understand RLS on performance impact. 

 

 

If my assistance helped you in any way, hit 👍

 

Did this post help? If yes, accept this answer as a solution. 

 

Thanks

 

 


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


HI, @SumayyaSayyad4 

 

if my solution helps you in any way, hit 👍. and accept it as a solution. 


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


rubayatyasmin
Super User
Super User

HI, @SumayyaSayyad4 

 

Are you using Direct Query? If so then Union Function will not work. See the remarks here.

rubayatyasmin_0-1689609032557.png

 

https://learn.microsoft.com/en-us/dax/union-function-dax

 

Note:  UNION function can be used to create new tables from existing ones, but if RLS is to be applied, it should be defined separately. Other DAX functions like CALCULATE and EVALUATE will respect RLS. As for roles, they define the rules of RLS. You can create roles and define what each role can see in terms of tables, columns, and rows.

 

rubayatyasmin_0-1689517080227.png


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.