0% found this document useful (0 votes)
13 views3 pages

21dcs114 Data Science and Analytics External Practical

The document outlines a practical exercise for classifying employee salaries into High, Medium, and Low categories based on specific salary thresholds using Power Query. It also involves creating a custom column to calculate total benefits based on job categories with defined percentage rates. The dataset includes columns for EmployeeID, EmployeeName, Department, BaseSalary, DateOfHire, and JobCategory.

Uploaded by

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

21dcs114 Data Science and Analytics External Practical

The document outlines a practical exercise for classifying employee salaries into High, Medium, and Low categories based on specific salary thresholds using Power Query. It also involves creating a custom column to calculate total benefits based on job categories with defined percentage rates. The dataset includes columns for EmployeeID, EmployeeName, Department, BaseSalary, DateOfHire, and JobCategory.

Uploaded by

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

21DCS114 DATA SCIENCE AND ANALYTICS EXTERNAL

PRACTICAL

Aim: You have a dataset containing employee salaries with the following columns: EmployeeID,
EmployeeName, Department, BaseSalary, DateOfHire, and JobCategory. Add a new column in Power
Query that classifies the salaries as High Salary, Medium Salary, and Low Salary based on the
BaseSalary.

● Salaries over Rs. 80,000 should be classified as High Salary.


● Salaries between Rs. 50,000 and Rs.80,000 should be classified as Medium Salary. ●
Salaries less than Rs. 50,000 should be classified as Low Salary.
Additionally, you need to create a custom column that calculates the total benefits based on
the job category:
● 20% of BaseSalary for Management.
● 15% of Base Salary for Technical.
● 10% of BaseSalary for Support.
Query used
if [JobCategory] = "Management" then [BaseSalary] * 0.2
else if [JobCategory] = "Technical" then [BaseSalary] * 0.15
else if [JobCategory] = "Support" then [BaseSalary] * 0.1
else 0

if [BaseSalary] > 80000 then "High Salary"


else if [BaseSalary] >= 50000 and [BaseSalary] <= 80000 then "Medium Salary"
else "Low Salary"

Report View:
Dataset URL:
Employee Salaries Datatset

You might also like