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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
abdul_rehman
Frequent Visitor

View Query made by Power BI

Hi,

 

I've following model defined in my Power BI Desktop

 

PRODUCT -------------> PARTY_PRODUCT <--------------- PARTY

                   1 to Many (Single)                        1 to Many (Single)           

 

If I make a report adding 'prouct name' from PRODUCT and COUNT(PARTY_ID) from 'PARTY', it makes a cross join and shows following date

 

PRODUCT_NAME  COUNT(PARTY_ID)

A                                       100

B                                       100

C                                       100

D                                       100

E                                       100
F                                       100

 

To identify the issue, i need to see what query does POWER BI SERVICE make. how can i view the final query?

 

I looked into DB (Azure Warehouse) query (using select * from sys.dm_pdw_exec_requests) which makes two seperate query and then stitches them in POWER BI.

 

Is it possible to see final query made by SERVICE in POWER BI?

 

Thanks.

1 ACCEPTED SOLUTION

@abdul_rehman

 

No. It's still not supported to see the query generated by Power BI. You may submit a feature request on idea.

 

Regards,

View solution in original post

4 REPLIES 4
v-sihou-msft
Microsoft Employee
Microsoft Employee

@abdul_rehman

 

I haven't encountered your issue. Please verify your relationship built. See my sample with a similar many-to-many scenario as yours:

 

34.PNG

 

33.PNG

 

Regards,

Simon Hou

@v-sihou-msft, yeah I got it. I changed my cross filteration to both and it worked perfectly.

 

But is there any way I can look at the query that Power BI made? just like 'Query View' in Microstrategy?

 

Thanks.

@abdul_rehman

 

No. It's still not supported to see the query generated by Power BI. You may submit a feature request on idea.

 

Regards,

Thanks a lot @v-sihou-msft

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.