Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi All,
I am getting the DAX error "Expressions that yield variant data-type cannot be used to define calculated columns."
The formula I have used is given below:
Solved! Go to Solution.
@Anonymous , Try like
Safety Stock and Safety Time Alignment = IF('Master Data Hygiene (2)'[Buffer Profile]="NB",blank(),
IF(OR(1*'Master Data Hygiene (2)'[Safety Stock]> (1 *'Master Data Hygiene (2)'[Red Zone Quantity]),(1*'Master Data Hygiene (2)'[Safety Time])>(1*'Master Data Hygiene (2)'[Red Zone Days])),0,1))
@Anonymous , Try like
Safety Stock and Safety Time Alignment = IF('Master Data Hygiene (2)'[Buffer Profile]="NB",blank(),
IF(OR(1*'Master Data Hygiene (2)'[Safety Stock]> (1 *'Master Data Hygiene (2)'[Red Zone Quantity]),(1*'Master Data Hygiene (2)'[Safety Time])>(1*'Master Data Hygiene (2)'[Red Zone Days])),0,1))
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 136 | |
| 102 | |
| 68 | |
| 66 | |
| 58 |