exam questions

Exam PL-300 All Questions

View all questions & answers for the PL-300 exam

Exam PL-300 topic 3 question 74 discussion

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

You have a Power BI model that contains two tables named Population and Date.

The Population table contains two columns named PopulationAmount and DateKey.

DateKey contains date values that represent the first day of a year and are used to create a many-to-one relationship with the Date table.

The Power BI model contains two measures that have the following definitions.

Total Population = Sum(‘Population’[PopulationAmount])
2023 Population = CALCULATE([Total Population], ‘Date'[Year] = 2023)

You create a table visual that displays Date[Year] and [2023 Population].

What will the table visual show?

  • A. one row per year that contains blank values for every year except 2023
  • B. one row per date that contains the population value for the corresponding year repeated in each row
  • C. a single row for the year 2023 that contains the related population value
  • D. one row per year that contains the same value repeated for each year
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
TigerTienie
Highly Voted 1 year, 6 months ago
Tested and correct answer is: D. one row per year that contains the same value repeated for each year
upvoted 57 times
Mo2011
11 months, 1 week ago
Yes tested
upvoted 3 times
...
cs3122
1 year, 3 months ago
Tested, and correct. Initially I thought the answer was A, but I had to learn for myself ;)
upvoted 3 times
...
ossanchezm
1 year, 3 months ago
Tested. This is the correct answer.
upvoted 3 times
...
...
[Removed]
Highly Voted 11 months, 1 week ago
A. one row per year that contains blank values for every year except 2023. The `2023 Population` measure filters the `Total Population` to only show values for the year 2023. For all other years, the measure returns blank. Thus, the table visual will display one row per year with blank values except for the year 2023, which will show the population value for 2023.
upvoted 23 times
Rajnahsadk
11 months, 1 week ago
Tested. This is the correct answer.
upvoted 9 times
...
...
jaume
Most Recent 5 months ago
Selected Answer: D
2023 Population is a constant value across all years as calculation is encapsulated in a CALCULATE function setting the year to be '2023' despite any other context therefore, even when the table is reporting all years in the period, this is not going to change that result
upvoted 3 times
...
FraGuara
5 months, 3 weeks ago
My Opinion: D When I add Date[Year] as a column, the row context would typically calculate the population sum for each distinct year. However, the measure forces a new row context to evaluate only for the year 2023, resulting in the same population value (for 2023) being displayed for every year in the table.
upvoted 1 times
...
Dani_eL
7 months ago
Well first of all; the Date measure is completely wrong: It should be ; 2023 Population = CALCULATE([Total Population], YEAR('Date'[Date])=2023) As a date table (created by calendar or calendar auto) will return a date you will have to format in short date anyway. Secondly, the population table contains dates as 01/01/YYYY meaning, one record per year. When you apply the one to many relationship, you will have all records from population matching the date of 01/01/yyyy in the Date table And as your Measure is calculating with a filter applied on the YEAR portion of the date = 2023, well, you will get one row only. In SQL you would have something like "select population from PopulationTable where Year(PopulationTable.Date)=2023 And when you have the measure being right it will show you the population number according to the selected year. It will return 1 record for 2023 with the corresponding population amount
upvoted 2 times
...
b92fc92
7 months ago
Selected Answer: C
C in my opinion
upvoted 3 times
...
Arth_1111
7 months, 2 weeks ago
Selected Answer: D
Tested and D is the correct answer.
upvoted 1 times
...
539d541
7 months, 2 weeks ago
Selected Answer: C
C - i tested it. When you specify Date(Year) in the visual - it is implied that you are using that part of the Date hierarchy table. That automatically means that only the year selected by the filter of the expression is returned
upvoted 3 times
...
nelrosell
7 months, 2 weeks ago
Tested C
upvoted 2 times
...
nammm112
7 months, 3 weeks ago
Selected Answer: D
D is the right answer.
upvoted 1 times
...
rcaliandro
8 months, 1 week ago
Selected Answer: D
D is the correct answer
upvoted 1 times
...
gabrinico
8 months, 3 weeks ago
Selected Answer: D
tested
upvoted 1 times
...
Palwashai
10 months, 2 weeks ago
Selected Answer: D
D is correct
upvoted 1 times
...
SIH007
10 months, 4 weeks ago
C is correct, if you use a table visual and select year only you will receive a list with the distinct years. Once you add the 2023 Population measure, there is only 1 row for 2023 and the Total Population (in 2023) left.
upvoted 1 times
...
HenryBiz
11 months, 1 week ago
Selected Answer: D
Tested and correct answer is D. Ref: https://learn.microsoft.com/en-us/dax/calculate-function-dax This is a property of CALCULATE function. "When the filter expression is not wrapped in the KEEPFILTERS function: If the columns (or tables) aren't in the filter context, then new filters will be added to the filter context to evaluate the expression. If the columns (or tables) are already in the filter context, the existing filters will be overwritten by the new filters to evaluate the CALCULATE expression". This question refers to the "overwritten case.
upvoted 3 times
...
0e18c76
11 months, 1 week ago
D is the right answer. Result from the test: Year 2023 Population 2020 1.200.000 2021 1.200.000 2022 1.200.000 2023 1.200.000 Total 1.200.000
upvoted 5 times
...
0e18c76
12 months ago
Tested and correct answer is D. 100% sure!
upvoted 2 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago