Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

DAX Functions Used

EasySQL · PostgreSQL00:00
Practice interviewer
In session
5 left
00:00

Your question is DAX Functions Used. Start with the requirements and the two tables on the right.

Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.

You need to log in / sign up to run or submit.

Problem

What DAX functions have you used in previous projects?

For this SQL exercise, treat prior project usage as records in the provided tables. Return functions used by at least two distinct projects during 2024.

Output

  1. One row per qualifying DAX function
  2. Columns: function_name, function_category, projects_using, usage_records, and latest_used_date
  3. Sort by projects_using descending, then function_name ascending

Schema

dax_function_catalog
ColumnTypeDescription
function_namePKVARCHAR(100)Name of the DAX function
function_categoryVARCHAR(100)Functional category of the DAX function
dax_function_usage
ColumnTypeDescription
usage_idPKINTUnique usage record identifier
project_idINTIdentifier of the project where the function was used
function_nameVARCHAR(100)DAX function used in the project
first_used_dateDATEDate when the function was first recorded in the project
last_used_dateDATEMost recent recorded use date
usage_countINTNumber of measured uses in the project record
Tablesdax_function_catalogdax_function_usage
Your solutionPostgreSQL
You need to log in / sign up to run or submit.
Run a query to see results