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 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 (?) , you can switch to a simple comment.
Switch to a voting comment New
Guru1337
Highly Voted 2 years, 2 months ago
Filter And Calculate
upvoted 146 times
GPerez73
2 years, 2 months ago
Correct! tested.
upvoted 8 times
Sandeep_kumar_yadav
11 months, 1 week ago
It's giving the wrong result. How and what formula have you used?
upvoted 1 times
...
Ry7anZZ
2 years, 1 month ago
how to test ? i did not find a right answer..
upvoted 2 times
PinkZebra
2 years, 1 month 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, 1 month ago
I agree. You must provide an expression into calculate, not table column
upvoted 9 times
...
...
lukelin08
Highly Voted 2 years, 1 month ago
Tested, following is correct >Filter >And >Calculate
upvoted 16 times
...
539d541
Most Recent 2 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
3 months ago
Filter, And, Calculate
upvoted 1 times
...
Aminebg
5 months, 4 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
8 months, 1 week ago
Filter AND CALCULATE
upvoted 4 times
...
MooonLight
8 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
8 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
8 months, 4 weeks ago
that kind of question goes far beyond POWER BI! It addresses specific DAX programming skillset...
upvoted 2 times
...
beazrou
9 months, 1 week ago
Filter And Calculate
upvoted 2 times
...
SHENOOOO
9 months, 3 weeks ago
Filter - And - Calculate
upvoted 2 times
...
Diana1982
11 months, 1 week ago
Could anybody explain this? I don't understand especially that filter-thing there.
upvoted 4 times
...
SilviaS
12 months 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 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, 1 month ago
FILTER, AND , CALCULATE
upvoted 2 times
...
Igetmyrole
1 year, 2 months ago
FILTER AND CALCULATE
upvoted 1 times
...
rgabage
1 year, 2 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 ...