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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Modify R code before refresh for whole dashboard

Good morning guys,

I am fairly new with Power BI so I apologise if the question is too simple 🙂

I connected PowerBI and RStudio to query from Postgres and modify the dataset, in order to upload smaller datasets, which I use for visualisations.

 

I have now 4 different datasets, all with the same Source Query ( i.e. R code). I have noticed that it would be better for me to add one column in my last 2 datasets, and I can do it with a line of code in R. I am now wondering, is there a way to refresh all 4 datasets at once, AFTER modifying the underlying code? 

When starting the project I did "Get Data" only once and then selected the 4 dataframes I needed, but after loading the DATA the firt time it seems that I can only modify them one by one!?

So far I managed to modify them through the query editor, but I need to do it  one dataset at the time.

 

Thanks

 

 

1 REPLY 1
lbendlin
Super User
Super User

Power Query queries can reference each other.  Create one query with all the columns, then reference if needed.  Or use your "master"  query throughout.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.