Power BI basics-editing tables

SQL column

Summary of basic knowledge of SQL database

Summary of advanced knowledge of SQL database

Total text: 912 words Estimated reading time: 3 minutes

Edit table

Editing a table is to process the table being queried, to change or delete the table, etc.

Example

We use the Customers1 table as an example to describe some operations of editing the table.

Power BI basics-editing tables

The query of the edit table is usually to edit the table in the query column on the left. We can see it when we enter the edit query interface.

Power BI basics-editing tables

Set properties

Mainly set some related information of the table, such as table name, remarks, etc. Right-click the table name and click Properties to see the properties window shown below.

Power BI basics-editing tables


copy

There are two replication functions for replication here, one is to directly copy a new table, and the other is to copy not only the current table, but also the tables associated with it.


Copy independent new table

You only need to right-click the table name and click Copy in the shortcut bar to copy an independent new table, and the table name will be automatically renamed.

Power BI basics-editing tables

Copy the associated table

Right-click the table name and select the first copy in the shortcut bar to copy the associated table.

For example, Customer1 and Customers2 are associated because of the customer ID. When we only copy Customers1, we will also copy Customers2. When we choose to copy, the copied table will not appear immediately in the system, and we need to right-click the blank area and click to paste, as shown in the following figure:

Power BI basics-editing tables

↓↓↓

After clicking Paste, we can see the two tables that have been associated and copied in the query area, as shown below:

Power BI basics-editing tables

Quote

The hyperlink is similar to ours. When the data in the source table changes, the reference table will also change. The specific operation is to right-click the table and select Reference in the pop-up shortcut bar.

For example, when we delete the city column in the source table, the city column in the reference table is also deleted.

Power BI basics-editing tables

New group

When we edit more tables, we can put different tables in different groups, similar to our folders. The specific operation is to right-click the table name and select New Group... in the pop-up shortcut bar to put the table in a new group, as shown in the following figure:

Power BI basics-editing tables

↓↓↓

Power BI basics-editing tables

delete

Right-click to delete to delete the selected table

Advanced editor (M function)

Right-click the table, there is an advanced editor in the shortcut bar, the M function used in it records every step of our operation, as shown below:

Power BI basics-editing tables

Regarding the use of the M function, we will give you a further introduction later, as long as you know how Power BI handles our operation steps.

annotation

The main content of the editing table is the copy and reference of the table, as well as the use of the advanced editor (M function). It belongs to some more conventional operations, and you can master it after a few hands-on operations.

Guess you like

Origin blog.51cto.com/15057820/2655134