ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 43 - TDA-C01 discussion

Report
Export

You have a dataset that contains sates data. The following is a sample of the data.

You need to return a value of true if a month has sales greater than $50 000. otherwise the formula must return a value of false.

Which two formulas achieve the goal Choose two

A.
SUM{[Sales]) IN (50000)
Answers
A.
SUM{[Sales]) IN (50000)
B.
IIF(SUM< [Sales] )>50000, TRUE, FALSE)
Answers
B.
IIF(SUM< [Sales] )>50000, TRUE, FALSE)
C.
MAX< [Sales], 50000)
Answers
C.
MAX< [Sales], 50000)
D.
[Sales] > 50000
Answers
D.
[Sales] > 50000
Suggested answer: B, D

Explanation:

The two formulas that will return a value of true if a month has sales greater than $50,000, otherwise the formula must return a value of false, are:

The IIF function is a logical function that returns one value if a condition is true, and another value if the condition is false. In this case, the condition is SUM([Sales]) > 50000, which means that the sum of sales for a month is greater than $50,000. The function will return TRUE if the condition is true, and FALSE if the condition is false. The comparison operator > is a logical operator that returns TRUE if the left operand is greater than the right operand, and FALSE otherwise. In this case, the operands are [Sales] and 50000, which means that the sales for a month are greater than $50,000. The operator will return TRUE if the sales are greater than $50,000, and FALSE otherwise. The other options are not correct for this scenario. The IN function is a logical function that returns TRUE if a value is in a set of values, and FALSE otherwise. In this case, the value is SUM([Sales]), which is not in the set of values (50000). The function will always return FALSE. The MAX function is an aggregation function that returns the maximum value in a field or expression. In this case, the field or expression is [Sales], 50000, which is not valid syntax. The function will return an error.

Reference: https://help.tableau.com/current/pro/desktop/en-us/functions_functions_logical.htm#IIF https://help.tableau.com/current/pro/desktop/en-us/operators.htm https://help.tableau.com/current/pro/desktop/en-us/functions_functions_aggregate.htm#MAX

asked 23/09/2024
Charles Marlin
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first