Power Query editor
Power Query editor
Merging
• Right Anti join: A Right Anti Join is the opposite of a Left Anti Join. It returns rows from the second
table that do not have a matching row in the first table.
Merging
Group By
In Power BI, the Group By operation allows you to summarize your data based
on one or more columns, enabling you to perform calculations like sum,
average, count, etc.
Pivoting
Pivoting : Pivoting is the process of transforming data from a long (or vertical)
format to a wide (or horizontal) format by turning unique values from one
column into multiple columns.
In the pivoted table:
•The "Region" values (North, South, East) have become new columns.
•The corresponding "Sales" values are placed under each region for every month.
•The "Month" column remains as the identifier for each row.
Unpivoting
Unpivoting in Power BI is the process of transforming data from a wide format to a long
format. This is the reverse of pivoting. It’s useful when you have columns that represent values
(like months or years) and you want to turn them into rows, making the data easier to analyze.
Scenario:
You have a table where sales data is stored in a wide format with months as columns. You
want to convert the months into rows to make it easier to analyze and visualize.
Unpivoting
Objective:
You want to convert the month columns (January, February, March) into rows, so you have a
single "Month" column with the corresponding sales amount for each product.
Transpose
• Transposing in Power BI (or Excel) is the process of flipping the rows and
columns of a table. This is useful when you want to switch the orientation of
your data for better analysis or to meet specific reporting requirements.
1. Drill Down:
2. Drill Up
3. Drill Through