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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.