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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
JBCUK
New Member

Excel: Power Query

I have the following Excel Power Query:

 

 

 

let
Source = Sql.Databases("MyConnectionString.datamart.fabric.microsoft.com"),
MyDatabase = Source{[Name="MyDatabase"]}[Data],
MyExcelQuery = MyDatabase{[Schema="model",Item="MyExcelQuery"]}[Data]
in
MyExcelQuery

 

 

 

  • I've removed SQL connection string links and DB references.
    • The above is an accurate reflection of just *how brief* this query is
  • The spreadsheet is located in Sharepoint and the above query is refreshed every data via Power Automate.
    • Thus far there have been zero errors via Power Automate - the PQ statement refreshes and everything looks fine.
  • However - additional data and columns that had been introduced into the upstream DataMart were not being downloaded via the Excel Power Query and showing up in the relevant Excel table. It's like the Excel PQ got stuck at a point in time and was refreshing but not actually doing anything.

What did I do?

  • I cut/pasted the existing PQ statement (shown above) into a blank spreadsheet and hit "refresh"
    • All the changes appeared
    • This surprised me but is this something to do with cached data?
  • I then cut/pasted the same PQ statement back into the original spreadsheet and hit "refresh" and - guess what?
    • Yup - all new changes appeared! 
    • In effect I could have cut/pasted the PQ statement into the original PQ and hit refresh and have got the same result.
    • Not sure why though! 

Does anyone have any insights into this behaviour?

It's got be stumped and I could do with some helpful pointers to work out the root cause of the problem so that I can work around it.

2 REPLIES 2
JBCUK
New Member

There are multiple users of the report this spreadsheet contains. Forcing a re-query by simply cutting/pasting the power query statement appears to be a universal workaround. Clearing the cache doesn't do that much. 

 

What I'm wondering is what the root cause might be? For example: I'm wondering if an upstream schema change which then arrives in a datamart isn't picked up by the (very simple) query?

ManuelBolz
Super User
Super User

Hello @JBCUK,

have you tried deleting/emptying the PQ data cache?

PQ > File > Options and Setting > Options > Global > Data Load > Data Cache Management Options


Best regards from Germany
Manuel Bolz


🤝Follow me on LinkedIn

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.