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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
aliciaortega93
New Member

Power BI downloaded PBIX does not contain Power Query queries

Hi everyone,

I am having a very confusing issue with a Power BI report and I would appreciate some guidance.

Background

I inherited a Power BI report created by another developer.
The report is published in Power BI Service and uses several Azure Functions as data sources (REST APIs returning JSON).

Current sources include endpoints like:

  • /api/get_jira_epics
  • /api/get_jira_tasks
  • /api/get_jira_sprints

The report itself works correctly in Power BI Service.


Problem 1 – Downloaded PBIX has no queries

When I download the report from Power BI Service as:

“A copy of your report and data (.pbix)”

and open it in Power BI Desktop:

  • the report visuals appear correctly
  • the dataset exists
  • BUT when I go to:

 

 
Transform Data
the Power Query editor is completely empty.
 

No queries are visible at all.

 

So I cannot see or edit the original queries created by the previous developer.

 

This makes me think the report may be:

  • connected to a semantic model
  • or partially live-connected

but I am not fully sure.


Problem 2 – Adding a new Azure Function breaks the report

I created a new Azure Function endpoint:

 

 
/api/get_pmo_weekly
The function works correctly and returns valid JSON data.
 

When I add it in Power BI Desktop using:

 

 
Get Data → Web
the table loads correctly and I can preview the data in Power Query.
 

However, after:

 

 
Close & Apply
the entire report breaks.
 

All visuals start showing errors such as:

 

 
There was a problem with one or more fields
or:

 

The column 'CW_Tasks_Expanded[Week Start]' either doesn't exist
or:

 

 
Error fetching data for this visual
 
It looks like:
  • existing tables disappear
  • relationships break
  • measures become invalid
  • old visuals lose references

even though I only added one new Web source.


Additional context

The report uses:

  • Azure Functions (REST APIs)
  • MySQL Azure database
  • multiple DAX measures
  • custom visuals
  • slicers based on week ranges

My goal was simply:

  1. add a new table (PMO_Weekly)
  2. keep all existing tables intact
  3. create new visuals/measures using the new weekly data

But adding the new source seems to destabilize the whole model.


Questions

  1. Why are the original Power Query queries not visible in the downloaded PBIX?
  2. Is this behavior expected for reports connected to semantic models/thin reports?
  3. Why would adding a single new Web source cause existing tables/measures/visuals to disappear or fail?
  4. What is the correct approach to extend this kind of report architecture?

Any help would be greatly appreciated.

1 ACCEPTED SOLUTION

Hi @aliciaortega93,

Thank you, @MFelix @jgeddes@tayloramy for your insights,
The PBIX file uses a DirectQuery or composite model architecture rather than the standard Import model, which is why the Power Query view appears empty. According to Microsoft documentation, adding local or import tables to a DirectQuery semantic model creates a composite model, which can result in limited relationships across sources and may lead to unexpected calculation or relationship issues. Adding the PMO_Weekly source probably changed the model’s structure and affected existing relationships or metadata. The best practice is to extend the original semantic model rather than make changes directly in the downloaded PBIX.

Use composite models in Power BI Desktop - Power BI | Microsoft Learn

Composite model guidance in Power BI Desktop - Power BI | Microsoft Learn

Download a Report from the Power BI Service to Power BI Desktop - Power BI | Microsoft Learn

Use DirectQuery in Power BI Desktop - Power BI | Microsoft Learn

Thank you.

View solution in original post

11 REPLIES 11
jgeddes
Super User
Super User

Along with the great suggestions from @MFelix  and @tayloramy , you can use the TMDL view in Desktop to see which connections your model is making. 

jgeddes_0-1779286969576.png

An example of what you may see...

jgeddes_1-1779287103544.png

 





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

Proud to be a Super User!





When I add the new conecction (PMO_Weekly table) it shows errors: 

aliciaortega93_1-1779427505388.png

 

And I reallized that all the relationships of the model are gone: 

aliciaortega93_2-1779427636651.png

 

Hi @aliciaortega93,

Checking in to see if your issue has been resolved. let us know if you still need any assistance.

 

Thank you.

Hi @aliciaortega93,

Have you had a chance to review the solution we shared earlier? If the issue persists, feel free to reply so we can help further.

 

Thank you.

Hi @aliciaortega93,

Thank you, @MFelix @jgeddes@tayloramy for your insights,
The PBIX file uses a DirectQuery or composite model architecture rather than the standard Import model, which is why the Power Query view appears empty. According to Microsoft documentation, adding local or import tables to a DirectQuery semantic model creates a composite model, which can result in limited relationships across sources and may lead to unexpected calculation or relationship issues. Adding the PMO_Weekly source probably changed the model’s structure and affected existing relationships or metadata. The best practice is to extend the original semantic model rather than make changes directly in the downloaded PBIX.

Use composite models in Power BI Desktop - Power BI | Microsoft Learn

Composite model guidance in Power BI Desktop - Power BI | Microsoft Learn

Download a Report from the Power BI Service to Power BI Desktop - Power BI | Microsoft Learn

Use DirectQuery in Power BI Desktop - Power BI | Microsoft Learn

Thank you.

Thank you so much for your reply! If I go there, I see the following: 

aliciaortega93_0-1779427154801.png



Any ideas what should I do next?

You can drag any of the elements from the Expression list, or any of those categories, onto the main screen. The coding will then populate. From there hopfully you can get a bit more insight into the connections in the model. 





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

Proud to be a Super User!





tayloramy
Super User
Super User

Hi @aliciaortega93

 

If you open the report in desktop, then click the dropdown right beneath the transform data button in the ribbon, and click data source settings, what do you see in there? 

 

As @MFelix mentioned, nothing being in power query implies that the model is using direct query connections and not import mode.  





If you found this helpful, consider giving some Kudos.
If I answered your question or solved your problem, mark this post as the solution!

Join the Fabric Discord!

Proud to be a Super User!





Thank you for your reply! When I click on that, I see the following:

aliciaortega93_3-1779427959116.png



The last one, get_pmo_weekly is the new one I'm trying to use in the data.

Hi @aliciaortega93 

At the top select the the first radio button to show only data sources in the report. 

 





If you found this helpful, consider giving some Kudos.
If I answered your question or solved your problem, mark this post as the solution!

Join the Fabric Discord!

Proud to be a Super User!





MFelix
Super User
Super User

Hi @aliciaortega93 ,

 

This can be because of the type of connection that the report uses check on the bottom rigth corner of your model what is the type of connection, Live connection, Direct Query, Import.

 

That will allow to pin point the question.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português





Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.