Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
OneWithQuestion
Post Prodigy
Post Prodigy

Drillthrough to another report direct query: does it filter the query being run?

Is there anyway for me to test this?

 

I want to see if a direct query PBI report runs its query by passing the drillthrough parameters into the WHERE clause.

 

I have a report that shows number of sales by day, then you can click on the day and right click to drill through to POS terminal sales details.

 

When it opens that child report, is it loading or querying ALL The records or does it pass that drillthrough field into the TSQL query as a WHERE clause?

 

Parent Report:  Right click on  field "SalesDate" the cell '2019-09-01' and select Drill Through to "POS Terminal Sales Details".

 

"POS Terminal Sales Details" is just a TSQL direct query that does:

 

SELECT SalesDate, POSTermID, TransactionID, UserID, LinePrice, other random fields....

FROM PosSalesTable

 

When that query runs, will the report return everything and then filter inside PowerBI, OR, will the detail report do:

SELECT SalesDate, POSTermID, TransactionID, UserID, LinePrice, other random fields....

FROM PosSalesTable

WHERE PosSaltesTable.SalesDate = '2019-09-01'

 

Can we somehow run a query profiler on this from inside PowerBI or PBI Desktop?  I don't know how to pass a drillthrough filter across PBI desktop to see it in the performance analyzer?

 

 

2 REPLIES 2
GilbertQ
Super User
Super User

Hi there

As far as I know you can only test the drill through to another report on the Power BI Service.

What you could do is when you drill through to another report having SQL Server Query Profiler running and see what query is being sent to the SQL Server?




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

I was afraid that may be the only way to accomplish it.  I was hoping there was some other way or some sort of "test parameters" you could set inside PBI Desktop for a file to run with.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors