Forum Discussion

jaryszek's avatar
jaryszek
Super User
10 months ago
Solved

Composite Model based on DirectLake over OneLake and Import tables

Hello, I want to add for my OneLake remote semantic model new tables in import mode.  I can use Tabuler Editor for it I suppose.  But question is how can i restrict some import tables rows bas...
  • v-hashadapu's avatar
    v-hashadapu
    10 months ago

    Hi jaryszek , Thank you for reaching out to the Microsoft Fabric Community Forum.

     

    You are correct that Import mode does allow you to use Power Query, and within Power Query you can define parameters to filter rows before they are loaded. This is exactly how you can control the amount of data that gets imported into your model. The distinction I was making is that those parameters only take effect at refresh or load time, they don’t provide dynamic filtering at query time.

     

    This is where the difference with Direct Lake comes in. Direct Lake does not allow Power Query transformations at all, which means you cannot apply parameters when connecting those tables. If you want Direct Lake tables to only expose certain rows, you need to prepare that filtered dataset upstream in OneLake, either by creating a materialized Delta table or a SQL analytics endpoint view.

     

    Finally, if your requirement is not just to reduce the imported dataset but also to control which rows individual users see, then parameters are not the right tool. That scenario is handled with Row-Level Security (RLS), which applies dynamic row filters at query time after the data has already been loaded.

     

    Direct Lake overview - Microsoft Fabric | Microsoft Learn

    Parameters - Power Query | Microsoft Learn

    Row-level security (RLS) with Power BI - Microsoft Fabric | Microsoft Learn