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

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
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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors