Skip to main content

40 Power Query Editor features in Power BI

40 Power Query Editor features in Power BI along with examples:

1. Filter Rows: Remove rows based on conditions.
Example: Remove rows with a null value in the "CustomerName" column.

2. Remove Duplicates: Eliminate duplicate rows.
Example: Remove duplicate entries based on the "OrderID" column.

3. Sort Rows: Arrange rows in ascending or descending order.
Example: Sort data by "Date" column in descending order.

4. Replace Values: Substitute one value with another.
Example: Replace "N/A" with "Unknown" in the "Status" column.

5. Split Columns: Divide a column into multiple columns.
Example: Split "FullName" into "FirstName" and "LastName."

6. Merge Queries: Combine data from multiple sources.
Example: Merge customer and order data based on the "CustomerID."

7. Group By: Aggregate data based on a specific column.
Example: Group sales data by "ProductCategory" and calculate the sum of sales.

8. Pivot Columns: Transform row values into column headers.
Example: Pivot "Month" values into separate columns.

9. Unpivot Columns: Transform columns into rows.
Example: Unpivot "Quarter1," "Quarter2," and "Quarter3" columns.

10. Rename Columns: Change column names.
Example: Rename "Column1" to "Revenue."

11. Replace Errors: Replace error values with custom text.
Example: Replace errors with "Data Not Available."

12. Data Type Conversion: Convert data types.
Example: Change "Date" columns to the date type.

13. Fill Down: Fill missing values with values from the previous row.
Example: Fill down missing values in the "Country" column.

14. Aggregate Columns: Create new columns with aggregate calculations.
Example: Calculate the average of "Sales" and "Profit."

15. Conditional Columns: Add new columns based on conditions.
Example: Create a column for "High Sales" if sales > $1000.

16. Add Index Column: Add a unique identifier column.
Example: Add an index column for row numbering.

17. Remove Columns: Eliminate unnecessary columns.
Example: Remove "Notes" and "Description" columns.

18. Duplicate Column: Create a copy of a column.
Example: Duplicate "OrderDate" as "OrderDate_Copy."

19. Extract Text: Extract specific parts of text.
Example: Extract the domain from email addresses.

20. Convert to Table: Change values to a table format.
Example: Convert a list of values to a table.

21. Merge Queries as New: Combine queries without modifying originals.
Example: Merge "Customers" and "Orders" as a new query.

22. Append Queries: Combine queries vertically.
Example: Append "Q1 Sales" and "Q2 Sales" tables.

23. Replace Columns: Replace one column with another.
Example: Replace "Address" with "FullAddress."

24. Extract Date/Time: Extract components like year or month.
Example: Extract the year from "OrderDate."

25. Date/Time Operations: Perform calculations on date/time values.
Example: Calculate the difference between two dates.

26. Merge Queries with Joins: Merge tables with different types of joins.
Example: Merge "Employees" and "Departments" using an inner join.

27. Keep First Rows: Keep only the first N rows.
Example: Keep the first 100 rows in the dataset.

28. Keep Last Rows: Keep only the last N rows.
Example: Keep the last 50 rows in the dataset.

29. Conditional Column Based on Another Column: Create a column based on the values in another column.
Example: Create a column to categorize customers as "High Value" if they have spent over $1000.

30. Table.SplitColumn: Split a table into multiple columns.
Example: Split a column of comma-separated values into separate columns.

31. Table.Group: Group data by one or more columns.
Example: Group sales data by "ProductCategory" and calculate the sum of sales within each group.

32. Table.ExpandTableColumn: Expand a table column to display its values.
Example: Expand a column containing JSON data.

33. Table.AddColumn: Add a new column with custom logic.
Example: Add a column that calculates a running total.

34. Table.Buffer: Cache a table for better performance.
Example: Use Table.Buffer to improve query performance.

35. Table.Combine: Combine tables horizontally.
Example: Combine two tables with identical structures.

36. List.Transform: Apply a transformation to a list.
Example: Apply a custom function to each element of a list.

37. Custom Functions: Create and use custom functions.
Example: Define a custom function to format phone numbers.

38. Error Handling: Handle errors gracefully in your queries.
Example: Add logic to handle missing data without breaking the query.

39. Parameterized Queries: Create queries that accept parameters.
Example: Create a parameterized query to filter data based on user input.

40. Query Dependencies: View and manage query dependencies.
Example: Analyze how queries are connected in the Power Query Editor.

These Power Query Editor features allow you to transform, shape, and combine data from various sources to create meaningful insights in your Power BI reports.





Comments

Popular posts from this blog

Charts - Make your data presentable

One-click charts are easy: Select the data and press  Alt+F1 . What if you would rather create bar charts instead of the default clustered column chart? To make your life easier, you can change the default chart type. Store your favorite chart settings in a template and then teach Excel to produce your favorite chart in response to  Alt+F1 . Say that you want to clean up the chart above. All of those zeros on the left axis take up a lot of space without adding value. Double-click those numbers and change Display Units from None to Millions. To move the legend to the top, click the + sign next to the chart, choose the arrow to the right of Legend, and choose Top. Change the color scheme to something that works with your company colors. Right-click the chart and choose Save As Template. Then, give the template a name. (I called mine ClusteredColumn.) Select a chart. In the Design tab of the Ribbon, choose Change Chart Type. Click on the Templates folder to see the template that ...

Data Analysis Tool Pack

  The  Analysis ToolPak  is an  Excel add-in  program that provides data analysis tools for financial, statistical and engineering data analysis. To load the Analysis ToolPak add-in, execute the following steps. 1. On the File tab, click Options. 2. Under Add-ins, select Analysis ToolPak and click on the Go button. 3. Check Analysis ToolPak and click on OK. 4. On the Data tab, in the Analysis group, you can now click on  Data Analysis . The following dialog box below appears. 5. For example, select Histogram and click OK to create a Histogram in Excel. Example Rank and Percentile The Rank and Percentile contained within the Analysis-ToolPak can be quickly used to find the rank of all the values in a list. The advantage of using the Rank and Percentile feature is that the percentile is also added to the output table. The percentile is a percentage that indicates the proportion of the list which is below a given number. Highlight the list (or the cells) which...

20 Power BI Dax Measures

Power bi 20 dax measures 20 DAX (Data Analysis Expressions) measures in Power BI with examples: Total Sales: scss Copy code Total Sales = SUM (Sales[Amount]) Average Sales Price: scss Copy code Avg Sales Price = AVERAGE (Sales[Amount]) Total Units Sold: mathematica Copy code Total Units Sold = SUM ( Sales [ Quantity ] ) Total Customers: scss Copy code Total Customers = COUNTROWS (Customer) Total Products: mathematica Copy code Total Products = COUNTROWS ( Product ) Maximum Sales Amount: scss Copy code Max Sales Amount = MAX (Sales[Amount]) Minimum Sales Amount: scss Copy code Min Sales Amount = MIN (Sales[Amount]) Sales Growth Percentage: mathematica Copy code Sales Growth % = ( Total Sales - [ Total Sales Last Year ] ) / [ Total Sales Last Year ] Total Profit: scss Copy code Total Profit = SUM (Sales[Profit]) Total Orders: scss Copy code Total Orders = COUNTROWS (Orders) Total Customers with Sales: css Copy code Total Customers with Sales = COUNTROWS( FILTER ...