Forum Discussion
If statement result to include text and value
Hi There,
I'm getting the following error on the below If Statement where if it is blank I want to show some text and then the value from another column?
"Expressions that yield variant data-type cannot be used to define calculated columns."
If(isblank(table[column]), "", "Text: " && table[column])
Please help!
Hayleysea change it as below
If(isblank(table[column]), "", "Text: " & table[column])I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.⚡
1 Reply
- parry2kSuper User
Hayleysea change it as below
If(isblank(table[column]), "", "Text: " & table[column])I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.⚡