Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
What does the acronym DAX stand for in the context of Power BI?
Not quite. Try another option.
Answer: Data Analysis Expression
DAX stands for Data Analysis Expressions, which is the formula language used in Power BI, Power Pivot in Excel, and Analysis Services.
Question 2 of 50
Which of the following statements best describes a Calculated Column in Power BI?
Not quite. Try another option.
Answer: It stores the result of the calculation in the model's memory.
Calculated columns are computed during data refresh and stored physically in the model, consuming RAM and increasing file size.
Question 3 of 50
When is a DAX Measure calculated?
Not quite. Try another option.
Answer: At query time, when used in a visual or interaction occurs.
Measures are dynamic and utilize the CPU to calculate results on the fly based on the current filter context.
Question 4 of 50
What is an 'Implicit Measure'?
Not quite. Try another option.
Answer: An aggregation created automatically by dragging a field into a visual.
Implicit measures are created by Power BI automatically (like Sum of Sales) when you drag a numeric column to a visual, without writing DAX.
Question 5 of 50
Which symbol is used to start a comment in DAX?
Not quite. Try another option.
Answer: //
In DAX, a double forward slash (//) or a double dash (--) is used to start a single-line comment.
Question 6 of 50
In DAX syntax, how is a column reference typically formatted?
Not quite. Try another option.
Answer: 'TableName'[ColumnName]
The standard syntax is the table name enclosed in single quotes (if it contains spaces or keywords) followed by the column name in square brackets.
Question 7 of 50
Which function serves as the 'safe' alternative to the division operator (/) to handle divide-by-zero errors?
Not quite. Try another option.
Answer: DIVIDE
The DIVIDE function (numerator, denominator, [alternate_result]) handles division by zero by returning BLANK or a specified alternate result, avoiding errors.
Question 8 of 50
Which logical function allows you to evaluate multiple conditions and return a result corresponding to the first true condition?
Not quite. Try another option.
Answer: SWITCH
SWITCH is useful for multiple conditions, replacing nested IF statements. It evaluates an expression against a list of values and returns one corresponding result.
Question 9 of 50
What does the DAX function COUNTROWS return?
Not quite. Try another option.
Answer: The count of all rows in a specified table, regardless of content.
COUNTROWS simply counts the number of rows in the specified table or table expression.
Question 10 of 50
Which function is used to join two text strings together in DAX?
Not quite. Try another option.
Answer: CONCATENATE
CONCATENATE joins two text strings into one text string. The ampersand (&) operator can also be used for this purpose.
Question 11 of 50
What is the primary purpose of the CALCULATE function?
Not quite. Try another option.
Answer: To evaluate an expression in a modified filter context.
CALCULATE is the most powerful function in DAX because it allows you to change the context in which a calculation is performed (e.g., overriding filters).
Question 12 of 50
Which function returns a table that represents a subset of another table or expression?
Not quite. Try another option.
Answer: FILTER
The FILTER function takes a table and an expression, and returns a table containing only the rows where the expression evaluates to TRUE.
Question 13 of 50
The RELATED function works only when...
Not quite. Try another option.
Answer: There is a relationship between tables.
RELATED requires an active relationship between the current table and the related table to fetch values from the 'one' side to the 'many' side.
Question 14 of 50
Which of the following is an example of an Iterator function?
Not quite. Try another option.
Answer: SUMX
Functions ending in 'X' (like SUMX, AVERAGEX) are iterators. They iterate through a table row by row to evaluate an expression.
Question 15 of 50
What is the result of using the ALL function on a table?
Not quite. Try another option.
Answer: It returns all rows in a table, ignoring any filters that might have been applied.
ALL removes filters from the specified table or column, allowing calculations typically used for percentages of totals.
Question 16 of 50
What function would you use to extract the year from a date column?
Not quite. Try another option.
Answer: YEAR
The YEAR function expects a date as an argument and returns the year as a four-digit integer.
Question 17 of 50
Which text function removes all spaces from text except for single spaces between words?
Not quite. Try another option.
Answer: TRIM
TRIM removes leading and trailing spaces and replaces multiple internal spaces with a single space.
Question 18 of 50
Which operator is used for logical OR in DAX?
Not quite. Try another option.
Answer: ||
The double pipe symbol (||) represents the logical OR operator. The && symbol represents AND.
Question 19 of 50
What is the return type of the TODAY() function?
Not quite. Try another option.
Answer: Date
TODAY() returns the current date. Even though the data type is DateTime, the time component is set to 12:00:00 AM.
Question 20 of 50
Which function counts the number of distinct values in a column?
Not quite. Try another option.
Answer: DISTINCTCOUNT
DISTINCTCOUNT counts the number of unique, non-blank values in a column.
Question 21 of 50
Which of the following is NOT a valid DAX logical function?
Not quite. Try another option.
Answer: WHEN
WHEN is not a DAX function. The primary logical functions are IF, AND, OR, NOT, SWITCH, etc.
Question 22 of 50
To create a measure that calculates Sales only for the 'Red' color products, which formula is correct?
CALCULATE is required to apply the filter (Color='Red') to the aggregation (SUM).
Question 23 of 50
What is the difference between NOW() and TODAY()?
Not quite. Try another option.
Answer: NOW returns Date and Time; TODAY returns only the Date.
NOW() provides the current date and precise time, whereas TODAY() provides the current date with time zeroed out.
Question 24 of 50
Which function allows you to use an inactive relationship between two tables for a specific calculation?
Not quite. Try another option.
Answer: USERELATIONSHIP
USERELATIONSHIP specifies a relationship to be used in a specific calculation (usually inside CALCULATE), activating it temporarily if it is inactive.
Question 25 of 50
What does the BLANK() function return?
Not quite. Try another option.
Answer: A null value
BLANK() returns a blank (null) value. In DAX, Blank corresponds to NULL in databases.
Question 26 of 50
Which function would you use to calculate the number of days between two dates?
Not quite. Try another option.
Answer: DATEDIFF
DATEDIFF(Date1, Date2, Interval) calculates the count of interval boundaries (Day, Month, Year, etc.) crossed between two dates.
Question 27 of 50
In the context of DAX, what is 'Row Context'?
Not quite. Try another option.
Answer: The concept that formulas iterate row by row in calculated columns or iterators.
Row context refers to the awareness of the current row being processed. It exists natively in Calculated Columns and Iterator functions.
Question 28 of 50
Which function replaces existing text with new text in a text string?
Not quite. Try another option.
Answer: SUBSTITUTE
SUBSTITUTE replaces specific text in a string (e.g., changing 'Old' to 'New'). REPLACE swaps text based on position and length.
Question 29 of 50
What is the purpose of the DISTINCT function?
Not quite. Try another option.
Answer: It returns a one-column table that contains the distinct values from the specified column.
DISTINCT returns a table, not a scalar value, containing unique values from the referenced column.
Question 30 of 50
Which DAX function creates a table with a single column of dates covering a specified range?
Not quite. Try another option.
Answer: CALENDAR
CALENDAR(StartDate, EndDate) generates a table with a single column named 'Date' containing a contiguous set of dates.
Question 31 of 50
When using RELATEDTABLE, what type of result is returned?
Not quite. Try another option.
Answer: A table of values related to the current row.
RELATEDTABLE follows a relationship from the 'one' side to the 'many' side and returns a table containing all matching rows.
Question 32 of 50
Which function returns the last date in the current context for the specified column of dates?
Not quite. Try another option.
Answer: LASTDATE
LASTDATE returns the last date in the current filter context for the specified column of dates.
Question 33 of 50
The LEN function is used to:
Not quite. Try another option.
Answer: Return the number of characters in a text string.
LEN stands for Length; it counts the characters in a string, including spaces.
Question 34 of 50
Which operator is used to check if a value is NOT equal to another?
Not quite. Try another option.
Answer: <>
In DAX, the operator for 'not equal to' is <>.
Question 35 of 50
What is the primary benefit of using variables (VAR) in DAX?
Not quite. Try another option.
Answer: They improve readability and performance by calculating a value once and reusing it.
Variables store the result of an expression so it can be passed into other parts of the measure without recalculating, enhancing performance and readability.
Question 36 of 50
Which function returns the arithmetic mean of all the numbers in a column?
Not quite. Try another option.
Answer: AVERAGE
AVERAGE calculates the arithmetic mean of the values in the column.
Question 37 of 50
If you want to handle errors in a calculation specifically, which function is best?
Not quite. Try another option.
Answer: IFERROR
IFERROR(value, value_if_error) evaluates an expression and returns a specified value if the expression returns an error; otherwise, it returns the value of the expression.
Question 38 of 50
Which function moves the given set of dates by a specified interval?
Not quite. Try another option.
Answer: DATEADD
DATEADD(dates, number_of_intervals, interval) shifts a set of dates forward or backward by the specified number of intervals.
Question 39 of 50
How does the ALLSELECTED function differ from ALL?
Not quite. Try another option.
Answer: ALLSELECTED removes filters from rows and columns but preserves filters from slicers/visuals outside the current visual.
ALLSELECTED creates a context that represents all rows and columns in the query, keeping explicit filters and contexts other than row and column filters. Useful for 'visual totals'.
Question 40 of 50
Which text function extracts characters from the middle of a text string?
Not quite. Try another option.
Answer: MID
MID(text, start_num, num_chars) returns a specific number of characters from a text string, starting at the position you specify.
Question 41 of 50
What is the output of the DAX expression: 5 + BLANK()?
Not quite. Try another option.
Answer: 5
In arithmetic operations (addition/subtraction), DAX treats BLANK as 0. So 5 + 0 = 5.
Question 42 of 50
Which function is used to calculate values over a set of dates that corresponds to the same period in the previous year?
Not quite. Try another option.
Answer: SAMEPERIODLASTYEAR
SAMEPERIODLASTYEAR returns a set of dates from the current selection shifted back one year.
Question 43 of 50
In a measure formula, what is the role of the RETURN keyword?
Not quite. Try another option.
Answer: It outputs the result when using variables (VAR).
When using VAR to define variables, the formula must end with RETURN followed by the final expression to output.
Question 44 of 50
Which function evaluates a logical test and returns one value if TRUE and another if FALSE?
Not quite. Try another option.
Answer: IF
The IF function structure is IF(logical_test, value_if_true, value_if_false).
Question 45 of 50
What function is used to aggregate data based on a parent-child hierarchy in DAX?
Not quite. Try another option.
Answer: All of the above
Parent-child hierarchies are flattened using PATH, PATHLENGTH, and PATHITEM functions to handle navigation through the hierarchy.
Question 46 of 50
Which function returns the standard deviation of a sample population?
Not quite. Try another option.
Answer: STDEV.S
STDEV.S estimates standard deviation based on a sample. STDEV.P is for the entire population.
Question 47 of 50
What is the purpose of the VALUES function?
Not quite. Try another option.
Answer: To return a one-column table of unique values from a column, respecting the current filter context.
Unlike DISTINCT, VALUES respects the current filter context and can also return a 'Blank' row if invalid relationships exist.
Question 48 of 50
Which iterator function would you use to find the highest value of an expression evaluated for every row in a table?
Not quite. Try another option.
Answer: MAXX
MAXX iterates over a table, evaluates an expression for each row, and returns the largest resulting value.
Question 49 of 50
Which date function returns the number of the week in the year (1-54)?
Not quite. Try another option.
Answer: WEEKNUM
WEEKNUM(date, [return_type]) returns the week number of the year.
Question 50 of 50
What is Filter Context?
Not quite. Try another option.
Answer: The set of filters applied to the data model by slicers, visuals, and report filters at the moment of calculation.
Filter context describes the active set of filters (from user interaction or DAX functions) that restricts the data before a calculation takes place.
That's unit 4
Answer a few questions and your score shows up here.
Nearly through. Did unit 4 of INT374 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 4 of INT374 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.