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.
Anonymous- Check this PBIX file out. Let me know if this works for you.
As rubayatyasmin suggested, you can accomplish this by utilizing the Matrix visuals. In the attached file, you'll find the specific steps that were followed. Moreover, you can reach the same outcome by deactivating the SteppedLayout and adopting the classic style.
- Anonymous3 years agoNot applicable
Hi Manoj_Nair
This is not the Result I want.
in the Template below.
Can this result be done with the power query in excel?- rubayatyasmin3 years agoCommunity Champion
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.
- Anonymous3 years agoNot applicable
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.