The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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(),
...)
User | Count |
---|---|
69 | |
65 | |
63 | |
48 | |
28 |
User | Count |
---|---|
112 | |
82 | |
66 | |
48 | |
43 |