Expressions that yield variant data-type cannot be used to define calculated columns.

Error: “Expressions that yield variant data-type cannot be used to define calculated columns.“ Cause: IF based Calculated Columns in Power BI or Power Pivot with 2 different data types is not allowed. Solution: Format one data type as needed using FORMAT() function. [code language=”sql”] Age = IF ( TableName[Birthday] < TODAY(), FORMAT ( Year (…

April 26, 2018 · 1 min · 80 words · Vitalie Ciobanu