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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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