SpinTheMic
Pro

Interview practice question

Comparing a selected period with the previous period

Data Analyst · Power BI and Tableau · Intermediate

Users pick any date range with a slicer and want to see sales compared with the immediately preceding period of the same length. How do you build it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Determine selected start/end and length.
  • Shift dates back by length.
  • CALCULATE with DATESBETWEEN on shifted range.
  • Remove original date filter.
  • Test across ranges.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics