
Checking both the Load to worksheet box and the Load to Data Model box will load queries into an Excel table and will load the data into the data model.ĭisplay a Monospaced Font in the Query Editor. Unchecking the Load to worksheet box and checking the Load to Data Model box will result in your queries loading as connection only and will load the data into the data model.
Note this is the same as when Use standard load settings is selected.
Checking the Load to worksheet box and unchecking the Load to Data Model box will load queries into an Excel table and not load data to the data model. Unchecking both the Load to worksheet box and the Load to Data Model box will result in your queries loading as connection only and will not load the data into the data model. In the Global Data Load settings, choose the Specify custom default load settings option and then select or deselect the desired options. Go to the Data tab then choose Get Data then open the Query Options. If you find most of the queries you end up creating need to be a connection only or need to load into the data model, then you can change the default load settings. If you want load the data as a connection only or need to load it into the data model to use with power pivot later on, then you need to select Close & Load To instead and select these options each time you create a new query. This is the default load settings in power query. When you press the Close & Load button for a query the first time, power query will load the data into an Excel table in the workbook and doesn’t add the data into the data moedel.
Now the next time you refresh the query loaded to your table, a new column called _RowNum will appear as the left most column and will contain an index for the row number starting at 0. This will open the External Data Properties menu and you can check the Include row numbers option and press the Ok button. Note that the Properties option found in the right click menu of the Queries & Connection pane will open the Query Properties window and not the External Data Properties window that is needed for this tip. Select a cell in the table output and go to the Data tab and press the Properties button. You can add an index column to any query through the power query editor, but it is also possible to add an index row to a query that’s been loaded to a table in a special way. Automatically Add a Row Index to any Query Loaded to a Table This will open the query editor on the selected query. The quickest way is to double left click on the query.
You can hover the cursor over the query until the peek window appears, then press the Edit button from the peek window. You can right click on the query then choose Edit from the menu. Double Click to Edit a QueryĮditing a query can be done a couple different ways from the Queries & Connections window pane. When you click on this part the query, it will add a navigation step to the query which navigates to that particular table. When you hover the mouse cursor over the word Table in the cell, it will change to a pointing hand icon. If you click on the blank area of a cell containing a table object, then you will be shown a preview of the table below your query. You can either preview the table or navigate to it in the query depending on where you click in the cell. If this is the case, the column’s row entries will display the text Table and the data type icon. Preview or Navigate to Table ObjectsĪ column in your query might contain table objects. This will delete that step and all query steps after that step. In the Applied Steps window pane, right click on the first step you want to delete and then select Delete Until End from the menu.
If you’re able to pin point at which step your query started going wrong, then you can delete that step and all steps after to start over (without fully starting over). Sometimes when you are building a query with a lot of steps, you end up going down the wrong path.
Double Click to Hide or Show the Query Editor Ribbon. Copy and Paste Queries to a New Workbook. Disable the Auto Detect Data Type Feature. Navigate Through Complex Query Dependencies. Rename a Column with a Keyboard Shortcut. Add Comments with the Query Step Properties. Add Comments that Stay Visible in the Formula Bar. Add Comments Without Opening the Advanced Editor. Comments in Power Query Formula Language. Display a Monospaced Font in the Query Editor. Automatically Add a Row Index to any Query Loaded to a Table.