KQL Query output limit of 5 lakh rows

Jatin Kolhe 0 Reputation points
2025-05-27T09:05:39.5266667+00:00

Hi , i have a kusto table which has more than 5 lakh rows and i want to pull that into power bi. When i run the kql query it gives error due to the 5 lakh row limit but when i use set notruncation before the query then i do not get this row limit error on power bi desktop but get this error in power bi service after applying incremental refresh on that table. My question is that will set notruncation always work and i will not face any error further for millions of rows and is this the only limit or there are other limits on ADE due to which i may face error due to huge volume of data or i should export the data from kusto table to azure blob storage and pull the data from blob storage to power bi. Which will be the best way to do it?

Azure Data Explorer
Azure Data Explorer
An Azure data analytics service for real-time analysis on large volumes of data streaming from sources including applications, websites, and internet of things devices.
576 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Venkat Reddy Navari 2,975 Reputation points Microsoft External Staff Moderator
    2025-05-27T10:23:46.3433333+00:00

    Hi @Jatin Kolhe The issue you're encountering stems from Azure Data Explorer's (Kusto) default query result limit, which restricts output to 5L rows or about 64 MB of data. While using set notruncation works in Power BI Desktop, it doesn’t always guarantee success in the Power BI Service, particularly when incremental refresh is applied.

    Key Considerations:

    • set notruncation: This can help in development, but it doesn't remove all limitations. In Power BI Service, you may still hit constraints like execution timeouts, memory usage, or dataset size limits during refresh.
    • Export to Azure Blob Storage: Export large volumes from Kusto to Blob Storage (e.g., in Parquet format), then load the data into Power BI. This is generally more reliable and scalable.
    • Data Partitioning: Use time-based filters or break your query into smaller chunks to make data retrieval more manageable.
    • Optimize Queries: Review your KQL to ensure it’s efficient and minimizes resource usage.

    Recommended Approach:

    If you're working with millions of rows, exporting data to Azure Blob Storage and connecting Power BI to that source is typically the best practice especially for production dashboards with incremental refresh.

    For more details on Kusto query limits, you can refer to the official documentation: Kusto Query Limits.


    I hope this information helps. Please do let us know if you have any further queries.

    Kindly consider upvoting the comment if the information provided is helpful. This can assist other community members in resolving similar issues.

    2 people found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.