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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
HayleyL
New Member

Using R to export then import data

Hi, 

I'm fairly new to Power Bi and have historically used Report Builder to report from my SQL Database (Housing Management System with no data warehouse). 

I have a gateway set up so the scheduled refresh aspect is fine. What I would like to do is export some of the data weekly (two columns and about 1200 rows), and then import it back with a date stamp or unique numerical value so I can then look at trends over a period of time. Each export will contain the same unique ID numbers with different values. 

From research I believe I can use R to export and them import the data, I can then use Time Series to use my historical and current figure to make predictions. 

I am just struggling to find any help with how to do all the steps together. 

 

Any help would be appreciated thank you. 

1 ACCEPTED SOLUTION
mahoneypat
Microsoft Employee
Microsoft Employee

Do you get new records every week? Or are you exporting the same records to see changes? Ideally, your database would keep the change history that you could bring in directly. If not, you could use report builder to create a paginated report that you subscribe to weekly in csv format, and then use Power Automate to trigger off those emails and then save the files with a name with the date (probably to a SharePoint library).  You could then combine the files in Power Query.

 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

1 REPLY 1
mahoneypat
Microsoft Employee
Microsoft Employee

Do you get new records every week? Or are you exporting the same records to see changes? Ideally, your database would keep the change history that you could bring in directly. If not, you could use report builder to create a paginated report that you subscribe to weekly in csv format, and then use Power Automate to trigger off those emails and then save the files with a name with the date (probably to a SharePoint library).  You could then combine the files in Power Query.

 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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