TDA-C01 Exam QuestionsBrowse all questions from this exam

TDA-C01 Exam - Question 24


HOTSPOT -

You have the following visualization.

You want the count of Returns displayed only for the first year in the table.

How should you complete the formula in the calculated field? (Use the dropdowns in the Answer Area to select the correct options to complete the formula.)

Show Answer
Correct Answer:

To display the count of Returns only for the first year in the table, we need to use a function that identifies the first row in the partition. Both FIRST() and INDEX() can be used for this purpose, but the correct way to compare with FIRST() is through its comparison with 0, which means the first row. Therefore, the correct formula is: IF FIRST() = 0 THEN COUNT([Returns]) END. This will ensure that the count of Returns is displayed only for the first year in the given table.

Discussion

4 comments
Sign in to comment
Dilara
Jul 25, 2023

First()=0

CollectiveConsciousness
Aug 2, 2023

The answer is incorrect. You can't compare date and integer values. The correct answers can be First() = 0, or Index() = 1. Both would work on a filters page to return the first year.

iccent2
May 10, 2024

The answer is FIRST(). I tried it using sales. IF FIRST()= 0 THEN SUM([Sales]) END

gsing11
Aug 18, 2023

First() = 0 gives you a boolean(true) which shows you the first year of count of orders