Forum Discussion

carlwikstrom98's avatar
carlwikstrom98
New Member
1 year ago
Solved

Dataflow connect to semantic model

Hi, I am trying out the fabrics data agent a bit and have a question regarding connecting to a fitlered data source. Right now I am connecting to a semantic model but I would like to connect to a fi...
  • v-sgandrathi's avatar
    v-sgandrathi
    1 year ago

    Hi carlwikstrom98,

     

    Thank you for reaching out to us.

    We understand you want to connect to a filtered version of your semantic model using a Dataflow, and use the measures and transformations already set up in your Fabric semantic model.

    At this time, Dataflows can’t connect directly to semantic models. Dataflows are mainly used to bring in raw data from sources like SQL databases, Lakehouses, or files. Since your semantic model is already getting data from SQL Server and includes key logic and measures in Fabric, suggesting the below points:

     

    Export to Lakehouse:

    You can use a notebook or pipeline to query your semantic model (applying filters as needed) and export the filtered data to a Lakehouse table. Then, you can point your Dataflow to the Lakehouse as the data source. This approach keeps your transformations within Fabric and avoids duplicating logic.

     

    Query via XMLA Endpoint:

    If you want to query the semantic model directly, use a notebook or pipeline to connect through the XMLA endpoint. You can write a DAX or MDX query with filters, then load the filtered results into a supported destination (like Lakehouse or Warehouse), which your Dataflow can then use.

     

    Importing the semantic model into Power BI Desktop and applying filters is another option, but it’s manual and not ideal for automated or scalable refreshes.