- Microsoft Power BI Cookbook
- Brett Powell
- 50字
- 2025-04-04 18:18:12
Conditional expression syntax
if...then expressions follow the following structure:
if <condition1> then <result1> else <result2>
All three inputs (condition1, result1, and result2) accept M expressions.
if expressions can be nested together with the following structure:
if <condition1> then <result1> else if <condition2> then <result2> else <result3>
The equivalent of a SQL CASE expression is not available in M.