Alright, let's walk through how to use Power Query to confirm the answers to the objective questions from Part A. We'll use Excel as the environment, but the steps are similar in Power BI.
Assumptions:
- You have the
indian_power_query_dirty_data.xlsx file open in Excel.
- You have Power Query available (Data tab > Get & Transform Data group).
Steps
- Load the Data:
- In Excel, go to the Data tab.
- Click From Table/Range. (Select your data first, if prompted)
- This will open the Power Query Editor.
Question 1: Power Query তে “error” মান রিমুভ করার অপশন কী?
-
Power Query Solution:
- Identify Error Column: Find a column that has errors (e.g., "#DIV/0!" or other error values). If there isn't one pre-existing, you can create an error using a Custom Column. For example, you could add a Custom Column with the formula
=1/0 to intentionally create errors in that new column.
- Remove Errors:
- Select the column with the errors.
- Go to the Home tab.
- Click Remove Rows > Remove Errors.
-
Observation: Power Query directly offers the "Remove Errors" option. Other options like Remove Nulls, Replace Values, and Clean function aren't specifically designed to remove error values. This confirms the correct answer is c) Remove Errors.
Question 2: “None” মান কোন ধরণের ডেটা সমস্যা?
-
Power Query Solution:
- If your sample dataset has the word "None" as a value in any column, then you can follow the following steps or you can manually create it with steps of question 1.
- Load Data: Open Power Query Editor (Data tab in Excel, Get Data > Launch Power Query Editor, or in Power BI, Transform Data). Connect to your Excel file and load the data.
- Replace None: click on Replace Values and put None and replace it with null then click ok and close and load.
- then in excel right click on the column and then Filter -> filter blank value. then it will show the rows.
- Remove Blanks: Click on Remove Rows and click on Remove Blank Rows and it will solve the issue.
-
Observation: The "None" value clearly represents a missing or absent entry in the dataset. It doesn't indicate a syntax error (code issue), formatting error (display issue), or column mismatch. This confirms that "None" signifies a b) Missing Value.
Question 3: নিচের কোন কমান্ড ব্যবহার করে শুধুমাত্র "Delhi" শহরের ডেটা রাখা যায়?
Question 4: কোন অপশন দিয়ে নতুন কলাম যুক্ত করা হয় Power Query-তে?
Question 5: Power Query তে “error” শব্দটি কোন টাইপের ইনপুট হতে পারে?
By running these practical exercises, you can solidify your understanding and be confident in the answers you chose for the objective questions!