exam questions

Exam PL-300 All Questions

View all questions & answers for the PL-300 exam

Exam PL-300 topic 2 question 44 discussion

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

DRAG DROP -
You are modifying a Power BI model by using Power BI Desktop.
You have a table named Sales that contains the following fields.

You have a table named Transaction Size that contains the following data.

You need to create a calculated column to classify each transaction as small, medium, or large based on the value in Sales Amount.
How should you complete the code? To answer, drag the appropriate values to the correct targets. Each value may be used once, more than once, or not at all.
You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: CALCULATE -
CALCULATE evaluates an expression in a modified filter context.
Syntax: CALCULATE(<expression>[, <filter1> [, <filter2> [, ג€¦]]])
The expression used as the first parameter is essentially the same as a measure.
Filters can be:

Boolean filter expressions -

Table filter expressions -

Filter modification functions -

Table filter expression -
A table expression filter applies a table object as a filter. It could be a reference to a model table, but more likely it's a function that returns a table object. You can use the FILTER function to apply complex filter conditions, including those that cannot be defined by a Boolean filter expression.

Box 2: AND -

Box 3: FILTER -
FILTER returns a table that represents a subset of another table or expression.
Syntax: FILTER(<table>,<filter>)
Note: DISTINCT returns a one-column table that contains the distinct values from the specified column. In other words, duplicate values are removed and only unique values are returned.
Reference:
https://docs.microsoft.com/en-us/dax/calculate-function-dax
https://docs.microsoft.com/en-us/dax/filter-function-dax

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
Guru1337
Highly Voted 2 years, 4 months ago
Filter And Calculate
upvoted 147 times
GPerez73
2 years, 4 months ago
Correct! tested.
upvoted 8 times
Sandeep_kumar_yadav
1 year, 1 month ago
It's giving the wrong result. How and what formula have you used?
upvoted 1 times
...
Ry7anZZ
2 years, 3 months ago
how to test ? i did not find a right answer..
upvoted 2 times
PinkZebra
2 years, 3 months ago
Hi, you can create the two tables in Excel, then try different options. I have never used "Calculate" with a categorical field before and this is a good learning experience.
upvoted 5 times
...
...
...
RichardOgoma
2 years, 3 months ago
I agree. You must provide an expression into calculate, not table column
upvoted 9 times
...
...
lukelin08
Highly Voted 2 years, 3 months ago
Tested, following is correct >Filter >And >Calculate
upvoted 17 times
...
jaume
Most Recent 1 month, 3 weeks ago
I'm totally lost with this question. VAR SalesTotal = 'Sales'[Sales].... but there is not such field in the Sales table!!! Let's assume it is VAR SalesTotal = 'Sales'[Sales Amount] "We need to create a calculated column...." I guess this column will be created in the Sales table, isn't it? If so, how are we using in the expression fields from another table? cannot see the way both tables could be linked.
upvoted 1 times
...
539d541
4 months, 4 weeks ago
I have a question about their formula: Do you even need to declare and use the VAR SalesTotal? Why not just use the column of 'Sales'[Sales] directly in the inequality expression? I replicated this in Power BI and found that only Filter And Calculate works for me by the way.
upvoted 1 times
...
rcaliandro
4 months, 4 weeks ago
Filter, And, Calculate
upvoted 1 times
...
Aminebg
7 months, 3 weeks ago
The CORRECT ANSWER IS : FILTER AND CALCULATE Why : Filter returns a table, and we need to create a calculated column
upvoted 2 times
...
DataEngDP
10 months, 1 week ago
Filter AND CALCULATE
upvoted 4 times
...
MooonLight
10 months, 2 weeks ago
I thought the FILTER function needs a condition as an argument? But in the FILTER segment here it has no condition...?
upvoted 1 times
...
Dani_eL
10 months, 3 weeks ago
answer is wrong; if you follow it you will receive a dax error (expression refers to multiple columns) the right sequence is Filter And Calculate
upvoted 2 times
...
Dani_eL
10 months, 4 weeks ago
that kind of question goes far beyond POWER BI! It addresses specific DAX programming skillset...
upvoted 2 times
...
beazrou
11 months, 1 week ago
Filter And Calculate
upvoted 2 times
...
SHENOOOO
11 months, 3 weeks ago
Filter - And - Calculate
upvoted 2 times
...
Diana1982
1 year, 1 month ago
Could anybody explain this? I don't understand especially that filter-thing there.
upvoted 4 times
...
SilviaS
1 year, 1 month ago
ExamTopics is still going on because of you. Without your corrections, comments, links, experiences, questions, this page will be one of the thousand going there. Thank you.
upvoted 9 times
...
Koalakueh
1 year, 2 months ago
I don't quite understand the answer. Wouldn't the result variable just give a single table with just 1 column showing 'Small', 'Medium', and 'Large'? Where is the VAR SalesTotal in such a table?
upvoted 1 times
...
RMUK
1 year, 3 months ago
FILTER, AND , CALCULATE
upvoted 2 times
...
Igetmyrole
1 year, 4 months ago
FILTER AND CALCULATE
upvoted 1 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