Forum Discussion
Pivot table in power query
- 3 years ago
ThisWorkbook.Connections("Combined_Financials_Sector").Refresh
note that Background refresh option should be checked. In the Excel UI, you can access this setting by clicking on "Connections" in the "Data" ribbon, selecting a connection, and clicking on "Properties". The "Enable background refresh" setting is in the dialog box that opens.
To my knowledge, you can not achieve the same result in PQ.
I am curious if it's possible. Let me know here if you are able to accomplish it in PQ. Maybe some advanced M code can do the trick.
you're right, it's a difficult process.
If I import it directly from the power query as a pivot table report, I have a problem.
I am currently renewing with these codes.
Private Sub CommandButton1_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
Sheets("Combined_Financials").Range("Combined_Financials_Sector").ListObject.QueryTable.Refresh BackgroundQuery:=True
Sheets("Symbols_Price").Range("Combined_Price_Sector").ListObject.QueryTable.Refresh BackgroundQuery:=True
End SubHow do I refresh the "Combined_Financials_Sector" in the background.
- rubayatyasmin3 years agoCommunity Champion
ThisWorkbook.Connections("Combined_Financials_Sector").Refresh
note that Background refresh option should be checked. In the Excel UI, you can access this setting by clicking on "Connections" in the "Data" ribbon, selecting a connection, and clicking on "Properties". The "Enable background refresh" setting is in the dialog box that opens.
- Anonymous3 years agoNot applicable
I did what you said but I am getting error.
- rubayatyasmin3 years agoCommunity Champion
Sorry, this is not English. I can not read it.