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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

List.Max seems to invoke query it refers to

For my use case, I am using 2 tables to make an incremental refresh. One (Query A) has the archive of records, the other (Query B) loads new rows based on a Timestamp field in Query A that it uses as a filter parameter in the API call.

In order for Query B to update the new fields, it needs to read the maximum timestamp value from Query A. I use List.Max to get that value. 

However, instead of fetching the max value of Query A as it is, List.Max in Query B returns the maximum value from the database through Query A. In other words, it seems like Query B invokes Query A to load, then returns the max timestamp from the refreshed Query A.

I want to return the Max Timestamp value from Query A from the data that's already been loaded in the past, without updating Query A.

Is there any way to work around this issue?

Many thanks!

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Not really.  You can much about with sequential loading of tables but that will fail too due to the dependencies in the code.

 

What you really need is to define your max value in an independent call to the data source (rather than looking at table A).

 

Out of curiosity - once you have loaded table B into Power BI, what is the next step?  Are you also writing the data into the data source?

 

You might want to consider using incremental refresh instead.

 

Keep in mind that Power BI  has no memory. You cannot use it for data storage (and expect it to be reliable at that). Your data source stays the original, well, source.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

Not really.  You can much about with sequential loading of tables but that will fail too due to the dependencies in the code.

 

What you really need is to define your max value in an independent call to the data source (rather than looking at table A).

 

Out of curiosity - once you have loaded table B into Power BI, what is the next step?  Are you also writing the data into the data source?

 

You might want to consider using incremental refresh instead.

 

Keep in mind that Power BI  has no memory. You cannot use it for data storage (and expect it to be reliable at that). Your data source stays the original, well, source.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.