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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors