0% found this document useful (0 votes)
133 views2 pages

DAX Interview Question Answers

The document provides a comprehensive overview of DAX (Data Analysis Expressions), detailing its purpose in Power BI and key concepts such as calculated columns, measures, and context. It covers various DAX functions, data types, and performance considerations, along with practical examples and explanations of how to create measures and handle errors. Additionally, it addresses the significance of relationships between tables and the treatment of blank values in DAX calculations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
133 views2 pages

DAX Interview Question Answers

The document provides a comprehensive overview of DAX (Data Analysis Expressions), detailing its purpose in Power BI and key concepts such as calculated columns, measures, and context. It covers various DAX functions, data types, and performance considerations, along with practical examples and explanations of how to create measures and handle errors. Additionally, it addresses the significance of relationships between tables and the treatment of blank values in DAX calculations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

DAX Interview Question Answers

By Skill Arbitrage
1. What is DAX, and why is it used in Power BI?
○ DAX (Data Analysis Expressions) is a formula language used in Power BI,
Power Pivot, and SSAS for data modeling and analysis.
2. How does DAX differ from Excel formulas?
○ DAX functions work on data models and tables rather than cells, enabling
complex data relationships and aggregations.
3. What is the difference between a calculated column and a measure in DAX?
○ Calculated columns are evaluated row-by-row, while measures aggregate
data dynamically based on the report context.
4. Explain the concept of context in DAX.
○ Context determines which data DAX formulas use, defined by filters and rows
available during calculations.
5. What are the types of context in DAX?
○ Row context, filter context, and context transition.
6. Describe row context and filter context.
○ Row context is data for a single row, while filter context includes filters applied
from reports or calculations.
7. What is a calculated table in DAX?
○ A table created using DAX formulas in Power BI, dynamically populated
based on specified criteria.
8. How do you create a measure in DAX?
○ In Power BI, select "New Measure" and write the DAX formula.
9. What is the syntax for writing a DAX formula?
○ Syntax includes function names, expressions, and optional parameters.
Example: SUM(Table[Column]).
10. Explain the importance of data types in DAX.
○ Data types ensure accurate calculations and avoid errors in aggregations or
logical operations.
11. What are the different data types supported in DAX?
○ Number, text, date, boolean, and currency.
12. How do you handle dates in DAX?
○ Use date functions like DATE, YEAR, MONTH, etc., and set a proper calendar
table.
13. What is the significance of the CALCULATE function?
○ CALCULATE modifies context, applying filters to calculate specific results.
14. Describe how DAX handles blank values.
○ Blank values are treated as empty or null, handled by ISBLANK or ignored in
aggregations.
15. What is the importance of using comments in DAX code?
○ Comments help document code logic for better readability and maintenance.
16. Explain how DAX deals with time intelligence.
○ DAX includes functions like TOTALYTD for analyzing data over time periods.
17. What are the different types of DAX functions?
○ Aggregation, filter, date and time, time intelligence, logical, and text functions.
18. How do you create a dynamic measure using DAX?
○ Use expressions with variables or SWITCH based on selections to update
measure results.
19. What is the difference between implicit and explicit measures?
○ Implicit measures are auto-created for aggregations; explicit measures are
user-defined in Power BI.
20. Describe the use of variables in DAX.
○ Variables store values within formulas to simplify and improve readability and
performance.
21. How does DAX treat data from different tables?
○ DAX relies on relationships between tables to join and retrieve data
accurately.
22. What is the role of relationships in DAX?
○ Relationships enable interaction between tables, affecting context and data
aggregation.
23. How do you manage data granularity in DAX calculations?
○ Use filters, aggregations, or calculated columns to adjust data at desired
levels.
24. What is the significance of using DISTINCT in DAX?
○ DISTINCT returns unique values, aiding in accurate aggregations.
25. How do you utilize the VALUES function?
○ VALUES returns unique values from a column, useful for filters or conditional
logic.
26. Explain the concept of a "context transition."
○ A context transition occurs when row context is converted to filter context,
often in measures.
27. What are some common DAX performance issues?
○ Issues include too many calculated columns, complex calculations, and poor
model design.
28. How do you handle errors in DAX formulas?
○ Use functions like IFERROR to manage errors in expressions.
29. What is the purpose of the ISBLANK function?
○ ISBLANK checks for blank values, allowing conditional actions based on
empty data.

You might also like