exam questions

Exam 70-779 All Questions

View all questions & answers for the 70-779 exam

Exam 70-779 topic 1 question 58 discussion

Actual exam question from Microsoft's 70-779
Question #: 58
Topic #: 1
[All 70-779 Questions]

HOTSPOT -
You have the following tables.

There is a relationship between the tables.
You need to create a measure that displays how many users have a total TimeInMinutes that is greater than 60.
How should you complete the DAX formula? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Reference:
https://docs.microsoft.com/en-us/dax/countx-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
zandt
Highly Voted 5 years, 6 months ago
The 1 is the second argument of the COUNTX function and represents the element to be counted. I think Users[UserID] would be more appropriate and easier to understand. But because we are just counting the results of the FILTER function it doesn't matter so a simple 1 will do the trick.
upvoted 16 times
FrdFrd
4 years, 5 months ago
Agree. BTW, the provided answers are correct: COUNTX and FILTER
upvoted 1 times
...
...
CDL
Most Recent 4 years, 8 months ago
COUNTX(<table>,<expression>)  Counts the number of rows that contain a non-blank value or an expression that evaluates to a non-blank value, when evaluating an expression over a table. FILTER(<table>,<filter>)  Returns a table that represents a subset of another table or expression. Regarding the “1”, go with “Zandt” in discussion, better input is “Users[UserID]” which what we need to count. Example 2 The following formula illustrates how to pass a filtered table to COUNTX for the first argument. The formula uses a filter expression to get only the rows in the Product table that meet the condition, ProductSubCategory = "Caps", and then counts the rows in the resulting table that have a list price. The FILTER expression applies to the table Products but uses a value that you look up in the related table, ProductSubCategory. DAXCopy = COUNTX(FILTER(Product,RELATED(ProductSubcategory[EnglishProductSubcategoryName])="Caps"), Product[ListPrice])
upvoted 3 times
...
Agustin
4 years, 11 months ago
I tested it and it works ok with COUNTX and Filter. I tested with COUNT and it gives me an error.
upvoted 2 times
...
PowerLjubica
5 years ago
Countx function can only have two arguments, and here we have 3?!
upvoted 1 times
FrdFrd
4 years, 5 months ago
It has 2 arguments indeed. Check again
upvoted 1 times
...
...
AnetaK
5 years, 6 months ago
What does this 1 stand for?
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 ...