cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ibu
Frequent Visitor

Appending web service query results to past query results

Given a web service that returns "current" values such as this:

 

... on 1/1/2023

ProductIDPrice
15.00
217.00

 

... and later on 1/5/2023

ProductIDPrice
16.50
217.00

 

Is it possible to append this data to a table keeping track of historical values, like this? :

DateProductIDPrice
1/1/202315.00
1/1/2023217.00
1/5/202316.50

 

The web service only ever returns current values, and I'm looking to merge the latest data in the data model on each refresh.

 

I wonder if a separate process is needed to query the web service and dump the response to a file (~1 per refresh/day), which Power Query would then read. This would allow rebuilding the historical table should the Power BI data source ever get deleted, though it isn't a strict requirement and I would rather have a simple solution contained within Power Query.

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Power BI has no memory, and no concept of global variables. You need to do that in the upstream system.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

Power BI has no memory, and no concept of global variables. You need to do that in the upstream system.

Helpful resources

Announcements
Exciting changes

Power BI Community Changes

Check out the changes to the Power BI Community announced at Build.

May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Kudo Data Story carousel

Data Stories Gallery

Visit our Data Stories Gallery and give kudos to your favorite Data Stories.

Top Solution Authors
Top Kudoed Authors