Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam PL-300 All Questions

View all questions & answers for the PL-300 exam

Exam PL-300 topic 2 question 85 discussion

Actual exam question from Microsoft's PL-300
Question #: 64
Topic #: 2
[All PL-300 Questions]

You have a Power BI model that contains a table named Employees. The table contains the following columns:

• Employee ID
• First Name
• Last Name
• Department
• Salary

Each employee is uniquely identified by using Employee ID.

You need to create a DAX measure that will calculate the average salary of all the employees in the sales department.

Which DAX expression should you use?

  • A. DISTINCTCOUNT(‘Employees’[Salary])
  • B. CALCULATE(DISTINCTCOUNT(‘Employees’[Salary]), ‘Employees’[Department] = “Sales”)
  • C. CALCULATE(AVERAGE(‘Employees’[Salary]), ‘Employees’[Department] = “Sales”)
  • D. AVERAGE(‘Employees’[Salary])
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
jaume
6 days, 14 hours ago
Selected Answer: C
DISTINCTCOUNT as in Option A is definitively not calculating any averge but just how many different salaries there are in the table Similar, option B is calculation how many different salaries there are in the "Sales" Deptm Option D is calculating the total salary average in the company not just for the "Sales" department (and it could be affected by CONTEXT filters) In option C we are calculating the AVERAGE of the Salary, just for employees in SALES department and encapsulating calculation in CALCULATE to remove any report filter
upvoted 1 times
...
Seda_
3 months, 3 weeks ago
C is the correct answer.
upvoted 3 times
...
shahrzadkhb
5 months, 1 week ago
Selected Answer: C
C is the correct answer.
upvoted 3 times
...
Palwashai
5 months, 2 weeks ago
C is correct
upvoted 1 times
...
MANANDAVEY
8 months, 3 weeks ago
Selected Answer: C
C is right
upvoted 4 times
...
Dani_eL
9 months ago
Selected Answer: C
C. CALCULATE(AVERAGE(‘Employees’[Salary]), ‘Employees’[Department] = “Sales”)
upvoted 3 times
...
Florinuca
9 months ago
Yes, the correct answer is C.
upvoted 1 times
...
INDEAVR
9 months ago
Selected Answer: C
C. CALCULATE(AVERAGE(‘Employees’[Salary]), ‘Employees’[Department] = “Sales”)
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...