ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 58 - TDA-C01 discussion

Report
Export

You have the following dataset.

Which formula calculates the percent difference in sales relative to the same quarter the previous year as shown in the Calculation field?

A.
(SUM ([Sales]) - LOOKUP (SUM ( [Sales]), -4))
Answers
A.
(SUM ([Sales]) - LOOKUP (SUM ( [Sales]), -4))
B.
(SUM ([Sales]) - LOOKUP (SUM ([Sales]), -4) ) / (LOOKUP (SUM ([Sales]), -4) )
Answers
B.
(SUM ([Sales]) - LOOKUP (SUM ([Sales]), -4) ) / (LOOKUP (SUM ([Sales]), -4) )
C.
(SUM([Sales]) / (LOOKUP (SUM ([Sales]), -4))
Answers
C.
(SUM([Sales]) / (LOOKUP (SUM ([Sales]), -4))
D.
(ZN (SUM ([Sales]) ) - LOOKUP (ZN (SUM ([Sales]) ), -4) )
Answers
D.
(ZN (SUM ([Sales]) ) - LOOKUP (ZN (SUM ([Sales]) ), -4) )
Suggested answer: B

Explanation:

The formula in option B calculates the percent difference in sales relative to the same quarter the previous year. It subtracts the sales of the same quarter from the previous year from the current year's sales, and then divides this by the previous year's sales. This gives a percentage change, which aligns with what is shown in the Calculation field of your dataset. The LOOKUP function returns the value of a specified offset from the current row in the partition. In this case, the offset is -4, which means the value of the same measure four rows above the current row. This corresponds to the same quarter of the previous year, assuming the data is sorted by quarter.Reference:

LOOKUP Function - Tableau

Table Calculations - Tableau

Tableau Certified Data Analyst Study Guide

asked 23/09/2024
Duc Hai
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first