power BI- data processing (with power query is almost the same)

Customers can use the power BI end

1, data cleaning - Remove blank lines

In the power BI selected in any cell, right - edit the query - click on the delete rows above the data source - Remove blank lines, even if the current data source no blank lines, but also about the implementation delete empty rows, because the back data may exist blank lines.

2, delete duplicates

In the power BI selected in any cell, right - edit the query - click on the delete rows above the data source - remove duplicate entries. Can not be selected when you delete duplicates delete a column, click on the top left of the table data source, and then delete the duplicates.

Fixed routine: delete blank lines, delete duplicate entries

3, dealing with strings related content, for example: Beijing replaced Beijing

Select the appropriate column select an alternative value, to find the input value, the value to be replaced is determined. When the city replaced with a null character, to replace the empty values ​​directly to

4, for the treatment of age-empty value:

To find the median age - replication function value corresponding to m - to find the right application step at a median Deletion - Replace the null value to the data source is 0 (when the input function can not be replaced) - OK , replacement function appears above the data source, the replication function of the value of the paste to the position 0, Note: without the equal sign is pasted

5, extract data such as date information sources: not extracted with conversion, extraction is carried out with conversion to the direct operation of a column in the data source, affect the integrity of the data source. The correct way: Select the column where the years, click Add columns - Date - such as years or months, added value and value in the month listed to the right data source. View one day of the week, you can also be viewed at this location

6, a null value for the replacement text data: as above, to be noted that, when replacing null text file, to be written in "null" strings, as default to null text. Enter text in the "Replace" when the direct replacement of null (null quotes) is wrong, as shown below (Excel version might be a problem), it needs to be modified in the formula above the data source.

 

Guess you like

Origin www.cnblogs.com/zxw2016208120/p/11373339.html