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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
hdemedici100
Regular Visitor

Using Row-level security with two different sources - Import and Direct Query

I'm working on a dashboard which has two data sources - one is Import and one is Direct Query. They have a one-to-one relationship. I'm trying to use Row Level Security so viewers only see the details relevant to their capability. I've set up the roles, and the filters (I've only been able to apply the filter for the table which is imported). 

 

The end goal is to have the below table filtered. It is filtering some of the column data out as you can see below, but the first two columns (name and email) are still being shown - I was expecting the entire row to be hidden. How can I get it so the row level security filters the whole table and the viewers of the report only see the details which are assigned to their role? For reference, all the columns shown are from the Direct Query table, with capability being the only one in the Import table.

 

Thanks in advanced!

 

Screenshot 2024-11-13 142943.png

1 ACCEPTED SOLUTION
hdemedici100
Regular Visitor

I've actually just managed to figure this out myself, on 'Name' and 'Email' columns on the Visualisation settings, I had 'Show items with no data' ticked. I've unticked this now, and it's done just what I needed!

Screenshot 2024-11-13 213458.png

View solution in original post

3 REPLIES 3
hdemedici100
Regular Visitor

I've actually just managed to figure this out myself, on 'Name' and 'Email' columns on the Visualisation settings, I had 'Show items with no data' ticked. I've unticked this now, and it's done just what I needed!

Screenshot 2024-11-13 213458.png

Pragati11
Super User
Super User

Hi @hdemedici100 ,

 

Can you please add details around what data model have you created to implement RLS?

A data model screenshot will be helpful to understand along with from which tables NAME and EMAIL are coming within the data model.

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Hi @Pragati11,.

 

Here you go. With the exception of the 'Capability' column which is in the Headcount table (import), all the other columns are from the Copilot user activity table (Direct Query). Some of them do have different names on the visual, I've just renamed them for that visual.

 

Screenshot 2024-11-13 212349.png

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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

October NL Carousel

Fabric Community Update - October 2024

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