Forum Discussion
DirectQuery: How to view generated SQL per visual, with row count and execution time?
DAX Studio doesn't show which query belongs to which Visual though does it?
- srinivt8 years ago
Microsoft 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.
- TeeGee8 years ago
Helper II
Well sure, you can do that, but if you have a poorly performing piece of SQL that you notice executing on the backend, having to go through a trial and error process to find out which visual it belongs to is not a great use of a person's time. Yes, I realize that based on the contents of the query you can very often (but not always!) narrow it down to a smaller subset of visuals to consider, but the point is, you shouldn't have to do this. Microsoft devs control this entire stack, outputting the underlying visual with the SQL shouldn't be terribly technically difficult I wouldn't think.
Rumor has it this change is in the queue somewhere, so hopefully it isn't too far down the list.