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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Employee
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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors