Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have a Details view accessed via direct query.
This returns over a billion rows and has some long string columns. The query behind it has an APPLY that does a nested loops join for each row returned which is very expensive on the full data set.
I never want PowerBi to do a SELECT * from that view without any WHERE clause as it kills the database server - and nor should it need to as there is an aggregated table set up as described here. The visuals referencing this view are all able to be satisified from the (imported) aggregate table - the details are just needed to be there in order to show additional data on clicking the "show data point as a table" option. The queries generated by this include filtering and a TOP clause that reduces the rows requested from the details view.
The "Include in report refresh" option is disabled for this data source and I thought this option had solved the issue. However I am finding that when I change the parameter values used by the connection to another environment and "close and apply" it sends the "select * from detailsview" request to the new environment.
Is there any way to stop this happening? I can refuse the query permission to run but that blocks the entire report from loading.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.