Forum Discussion

Jeanxyz's avatar
Jeanxyz
Icon for Power Participant rankPower Participant
10 months ago
Solved

can't import a semantic model into Power BI Desktop

I have Fabric free trial capacity, and a semantic data model has been created in Fabric workspace. By default, I can connection Power BI Desktop to the semantic model under Direct Lake mode. But here I need to run some DAX query which need access to the meta data of the semantic model. This is not allowed in Direct Model, so I try to connection Power BI Desktop to the semantic mode using import mode (see demo from Chris Web https://blog.crossjoin.co.uk/2025/05/04/documenting-power-bi-semantic-models-with-fabric-data-agents/). 

However, when I import the semantic model, I got an error message: 

Model
AnalysisServices: The resultset of a query to external data source has exceeded the maximum allowed size of '1000000' rows. Technical Details: RootActivityId: 8c6c70c5-cc85-4701-8f52-e63b3494ed08 Date (UTC): 10/20/2025 7:11:13 AM
 
That error seems to say when importing a semantic model to Power BI Desktop, only 1 million rows of data can be imported. Is there a solution to this issue? 

 

 

3 Replies

  • yes that 1m row cap is a known limitation when importing a fabric semantic model into PBI desktop in Import mode, it is imposed by the XMLA endpoint query result size limit

     

    To work around, you can try the below:

    1. Reduce the dataset size by filtering or aggregating before import.

    2. Use DirectQuery to the XMLA endpoint instead of full import (lets you query metadata via DAX Studio or Tabular Editor without pulling all data).

    3. Upgrade to a paid fabric capacity (F-SKU) -> larger capacities allow higher XMLA query result limits.

     

    Solved: Re: Size limit per Semantic model - Microsoft Fabric Community

    https://community.fabric.microsoft.com/t5/Desktop/The-resultset-of-a-query-to-external-data-source-has-exceeded/td-p/2613308

     

    • Jeanxyz's avatar
      Jeanxyz
      Icon for Power Participant rankPower Participant

      Thanks, to solve the 1 mn row limite,  I managed to create an aggregation query in Power Query. 

       

      = AnalysisServices.Database("powerbi://api.powerbi.com/v1.0/myorg/Stock_Fabric_test", "Stock_Analysis_Fabric", [Query="EVALUATE addcolumns(values(fact_stocks[Ticker]), ""price"", average(fact_stocks[Close]))"])

  • v-venuppu's avatar
    v-venuppu
    Icon for Community Support rankCommunity Support

    Hi Jeanxyz ,

    Thank you for reaching out to Microsoft Fabric Community.

    Thank you Vinodh247for the prompt response.

    I wanted to check if you had the opportunity to review the information provided and resolve the issue..?Please let us know if you need any further assistance.We are happy to help.

    Thank you.