Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

How to use a placeholder for a calculated column?

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!

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

@Anonymous 

SWITCH([Column1], 
1, "1", 
2, "",
...)

or

SWITCH([Column1], 
1, 1, 
2, BLANK(),
...)

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

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

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
az38
Community Champion
Community Champion

@Anonymous 

SWITCH([Column1], 
1, "1", 
2, "",
...)

or

SWITCH([Column1], 
1, 1, 
2, BLANK(),
...)

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors