【PowerQuery】Copy and paste connection group

In actual application scenarios, single connection scenarios are very rare. Usually there are two or more PowerQuery data sources. In such scenarios, copying data sources one by one is very inefficient. Is there a more efficient way to copy data sources? The connection group function shared next is such a concept. In PowerQuery, if the data connection provides more categories, for example, some data comes from files, and some data comes from databases. If these data sources are mixed together, we will not be able to achieve very clean classification and data labeling. The data source grouping function of PowerQuery provides data source grouping according to different goals and functions, so as to achieve relatively clear function marking. It is very simple to create a data source group in Excel, and there may be no data source connection in the created group. The figure shows how to create data source grouping. The concept that needs to be clear is that what we copy and copy the data source connection is the connection string, which does not mean that the data source can be accessed smoothly.

Fill in the name of the connection group that needs to be built in the pop-up window, and the picture shows the completed data connection group

After the final data connection group is completed, the corresponding data connection needs to be put into the corresponding connection group to realize the classification of the data connection

After completing the establishment of the final data source group and moving the data source into the corresponding data source group, the relationship between the final data source group and the data source is shown in the figure.

After building the data source group, we can uniformly copy the imported data source connections to avoid a large number of repeated operations caused by too many data sources. The picture shows the copy operation based on the data source group

In the process of data source group replication, there is a type of scenario that requires special attention, if this type of data requires access rights. For example, when we access data sources in a shared directory, or access data that requires credentials to be authenticated, such as SQL Server or MYSQL, we need to build corresponding access credentials before obtaining data from the data source.

Guess you like

Origin blog.csdn.net/fogyisland2000/article/details/132712500