Courseiva
Visualization and ReportinghardMultiple ChoiceObjective-mapped

DA0-002 Visualization and Reporting Practice Question

An analyst needs to create a report in Power BI that shows year-to-date sales compared to the same period last year, with the ability to drill down from year to quarter. Which DAX function combination is most appropriate for the year-to-date calculation?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

TOTALYTD and SAMEPERIODLASTYEAR

TOTALYTD calculates year-to-date values, and SAMEPERIODLASTYEAR shifts the comparison to the prior year. Together they allow YTD vs prior YTD comparison.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • CALCULATE and ALL

    Why it's wrong here

    CALCULATE and ALL can modify filter context but don't provide YTD logic.

  • SUM and FILTER

    Why it's wrong here

    SUM and FILTER can filter but don't automatically handle time intelligence.

  • TOTALYTD and SAMEPERIODLASTYEAR

    Why this is correct

    These time intelligence functions compute YTD and compare to the same period last year.

  • RANKX and TOPN

    Why it's wrong here

    These are for ranking, not time intelligence.

About these practice questions

Courseiva writes every DA0-002 question from scratch — 986 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This DA0-002 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DA0-002 exam.