Forum Discussion

TeeGee's avatar
TeeGee
Icon for Helper II rankHelper II
8 years ago

DirectQuery: How to view generated SQL per visual, with row count and execution time?

I am working with a fairly complex (5 slicers, 13 visuals) Power BI report that is attached to an Azure SQL database via DirectQuery.

 

Currently, I am examining the generated SQL via the SQL Server Query Store, which works "ok", but one downside is, there's no way of knowing which visual corresponds to each SQL statement.

 

Is there an alternative approach to debugging SQL where I would be able to see this association, and hopefully still see row count and execution time per statement?

4 Replies

    • TeeGee's avatar
      TeeGee
      Icon for Helper II rankHelper II

      DAX Studio doesn't show which query belongs to which Visual though does it?

      • srinivt's avatar
        srinivt
        Icon for Microsoft Employee rankMicrosoft Employee

        The only thing you could do is move each of your visuals to a page of their own. Now when you reopen your pbix file, the queries will be sent only for your active page, which could help you to debug and relate it to the corresponding SQL query/queries.