0% found this document useful (0 votes)
167 views43 pages

3 - Power BI - Query Editor - Row Transformation

Row Transformation

Uploaded by

Sunilkumar Dubey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
167 views43 pages

3 - Power BI - Query Editor - Row Transformation

Row Transformation

Uploaded by

Sunilkumar Dubey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 43

Power BI

Power BI Query Editor


Rows
Transformation
◦ There are certain important row transformation
options already in built in Query ribbon
interface. You can use these row transformation
options with just simple click of mouse button.
ROWS TRANSFORMATION
IMPORT ‘ROW
TRANSFORMATION’
EXCEL FILE
◦ To remove top row:

Remove Top Rows ◦ Go to → Home → Reduce Rows → Remove Rows →


Remove Top Rows
◦ Type ‘1” as value to remove number of rows from top
◦ To remove bottom rows:
Remove Two ◦ Go to → Home → Reduce Rows → Remove Rows →
Remove Bottom Rows

Bottom Rows ◦ Type ‘2” as value to remove number of rows from bottom
◦ To remove duplicate records by matching column values:

Remove Duplicates ◦ Select following columns using CTRL key, – Invoice,


Customer Name & Amount
◦ Go to → Home → Reduce Rows → Remove Rows →
Remove Duplicates
Remove Blank ◦ To Remove Blank Rows:
◦ Go to → Home → Reduce Rows → Remove Rows

Rows → Remove Blank Rows


◦ To Remove Error Rows:

Remove Errors ◦ Select ‘Product Name’ column


◦ Go to → Home → Reduce Rows → Remove Rows
→ Remove Errors
Use First
Row as
Header
◦ To move 1st row as header
on top:
◦ Go to → Transform →
Table → Use First Row as
Header
◦ To Keep top 5 rows:

Keep Rows ◦ Go to → Home → Reduce Rows → Keep Rows →


Keep Top Rows
◦ Type ‘5” as value to remove all rows except top 5 rows
◦ To Keep Range of Rows:
Keep Range of ◦ Go to → Home → Reduce Rows → Keep Rows →
Keep Range of Rows
Rows ◦ After ‘5” rows keep 10 rows
◦ To keep duplicate of a particular column:

Keep Duplicate ◦ Select ‘Invoice’ or ‘Customer Name’ or ‘Shipping Address’


column,
◦ Go to → Home → Reduce Rows → Keep Rows → Keep
Duplicates
You can perform grouping operations (Group By actions) on multiple
columns, and perform multiple aggregations, all within the Group
By window, and all in one operation. Query Editor creates a new
column (based on your selections in this window) that operates on
multiple columns. Group By
◦ In Query Editor, you can group the values in multiple rows
into a single value. This can be useful when summarizing
the number of products offered, the total sales, or the
count of students.
◦ Select ‘Customer Name’ and ‘Product Name’; and
click → ‘Group by’ in Transform tab
1. Group by – this is the column to be grouped; Query
Editor chooses the selected column, but you can
change it in this window to be any column in the
table.
2. New column name – Query Editor suggests a
name for the new column, based on the operation it
applies to the column being grouped, but you can
name the new column anything you want.
3. Operation – here you specify the operation that
Query Editor applies.
4. Add grouping and Add aggregation – these
options appear after selecting the Advanced option.
Row Filter - Filtering ◦ Import file ‘Row Transformation.xlsx’.

Selected Rows ◦ Make first row as top header using ‘Use First Row as
Headers’ in ‘Transform’ tab.
◦ Set Proper Data Type to Column headers
Row Filter - ◦ Data Type of Column has impact on filtering options
available.
Filtering ◦ Deferent Row Filters are:
Selected Rows 1.
2.
Text Filter
Number Filter
3. Date Filter
NUMBER FILTER
‘Invoice’ column is set to data type as ‘whole Number’
TEXT FILTER
‘Customer Name’ column is set to data type as ‘Text’
DATE FILTER
‘Invoice Date’ column is set to data type as ‘Date’
YEAR
FILTER
QUARTER
FILTER
MONTH
FILTER
WEEK
FILTER
DAY
FILTER
HOUR
FILTER
MINUTE
FILTER
SECOND
FILTER
CUSTOM
FILTER
ADVANCE
‘CUSTOM
FILTER’
◦ Text filtering options are Case Sensitive

Case Sensitive ◦ Click on Drop Down button of ‘Product Name’


column → Text Filters → Equals…
◦ Try to filter all ‘cycle’ word in ‘Product Name’ column
Case In-Sensitive
◦ Search bar is NOT case sensitive.
◦ Click on Drop Down button of ‘Shipping Address’
column → Click in Search box → Type word ‘pune’
in small case
Filter Rows
Matching Data in
one Or More
Columns (AND /
OR)
◦ Click on Drop Down
button of ‘Shipping
Address’ column → Click
in ‘Text Filters’ → Click on
option ‘Contains…’ →
Click to select ‘Advance’
radio button
◦ Fill the options as shown in
figure

You might also like