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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
pcarmen
Frequent Visitor

Saving Data Weekly for a Power Bi Report

Hi,

 

Appologies if this has been covered and I havent been able to frame my searches correctly.

 

We are trying to run a weekly report with power bi. Previously we have saved a new pbix file each week. However I would like to manage one report with a new dataset saved each week. Bonus points for us able to interact with the data sets at the report level and load in each week based on a parameter in the report.

 

I am not really sure how to start (each report has 10+ data inputs). 

 

Any advice or links would be greatly appreciated.

3 REPLIES 3
rargyle
Advocate II
Advocate II

I've set up a "snapshot" style data dump where I have a report that when it refreshes, writes a CSV file to a SharePoint location, with a year-week number in the filename. The code for this report (there are no visuals needed) uses some R script to write to a local machine, so you need a Personal Gateway running on it. 

 

Then you could have a separate report that reads the CSV files in the SharePoint location and loads the correct one(s) according to your parameter.

 

If this sounds like a solution to your issue, once you have installed R Open, the R code you will need is:

 

R.Execute("# 'dataset' holds the input data for this script#(lf)write.csv(dataset, file = "C:/LocalFilePathToSharePointSync/Snapshot_Week-" & Number.ToText(CurrentWeek) & ".csv"")",[dataset=#"Previous Step"])

v-luwang-msft
Community Support
Community Support

HI @pcarmen ,

Has your problem been solved, if so, please consider Accept a correct reply as the solution or share your own solution to help others find it.

Best Regards
Lucien

lbendlin
Super User
Super User

Power BI has no memory. You need to do the data storage in the upstream system.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.