DAX Logical Functions MCQS
Q. What does the IF() function do in DAX?
Solution:
IF() is a basic conditional function returning one of two results based on a test.
Q. Which function requires both supplied conditions to be true?
Solution:
AND() only returns true when both conditions it’s given are true.
Q. What is SWITCH() best used for?
Solution:
SWITCH() replaces multiple nested IF() statements with a flatter, more readable structure.
Q. What is the common pattern SWITCH(TRUE(), ...) used for?
Solution:
 SWITCH(TRUE(), condition1, result1, condition2, result2, …) lets you evaluate a series of independent conditions in order.
Q. What happens if a SWITCH() formula has no matching condition and no default value?
Solution:
Without a default final value, SWITCH() returns blank for any row that doesn’t match a listed condition.
Q. How many conditions can AND() or OR() accept directly?
Solution:
 AND() and OR() each take exactly two arguments; more conditions require nesting or the && / || operators.
Q. Why might a developer choose SWITCH() over three nested IF() statements?
Solution:
Deeply nested IF() statements become hard to read; SWITCH() flattens the same logic into a linear, more maintainable structure.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.