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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Insert a row into a table after each refresh

I have two queries say A and B. Query A has a R script that generates a single data row after some prediction calculation. The results of A need to be added into B. 

 

Initially B is empty. After the first refresh, data is generated in Query A and it needs to be appended into Query B. Subsequently, after each refresh, all the data generated in Query A needs to list up in B. 

 

Basically, here Query B is maintaining a log of results from Query A. How to achieve this? Let me know if any more explanantion is needed.

1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

Please consider below two scenarios.

 

Scenario1: Query A always loads one row record. After refresh, the new record would cover over the old record. 

It is not possible to insert the new record into Query B every refresh.

 

Scenario2: Query A has only one row record originally. Each time we refresh Query A, it would add one row record into the loaded table. 

In that case, your requirement could be achieved. Please append Query A to Query B. When you refresh Query A, the new updated data would be automatically added to QueryB.

1.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

Please consider below two scenarios.

 

Scenario1: Query A always loads one row record. After refresh, the new record would cover over the old record. 

It is not possible to insert the new record into Query B every refresh.

 

Scenario2: Query A has only one row record originally. Each time we refresh Query A, it would add one row record into the loaded table. 

In that case, your requirement could be achieved. Please append Query A to Query B. When you refresh Query A, the new updated data would be automatically added to QueryB.

1.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

@v-yulgu-msft  Your solution will only work first time you will have A and B time second time  You will A and C and B will be missing.

mwegener
Most Valuable Professional
Most Valuable Professional

I think that is not possible at the moment.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


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.