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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors