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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello
I have a calculated column:
SWITCH([Column1], 1, 1, 2, ...)
How can I put a placeholder for when Column1=2 ?
If I put "TBD" or "", it says that variant data-type calculations are not allowed.
Thanks!
Solved! Go to Solution.
@Anonymous
SWITCH([Column1],
1, "1",
2, "",
...)
or
SWITCH([Column1],
1, 1,
2, BLANK(),
...)
hi @Anonymous
If so, you need to use BLANK() instead of "TBD" or "", since "TBD" or "" are text format, nut 1,2 is number format, you could not put them into one number type column unless this column is a Text type. In that way, 1,2 should be define as this "1" , "2".
So just please adjust the formula as az38's reply.
Regards,
lin
@Anonymous
SWITCH([Column1],
1, "1",
2, "",
...)
or
SWITCH([Column1],
1, 1,
2, BLANK(),
...)
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!