cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PoweBI Member
Member

Error Expressions that yield variant data-type cannot be used to define calculated columns

Hello Communties,

I am getting below error message,

Error Message:”Expressions that yield variant data-type cannot be used to define calculated columns”,In below formula [AMERICAS AO] and [AMERICAS BA]are Numeric Colmn.I cannot remove “No Available” as result.I have chnaged "No Available" to 00000 and it did not give any error.

Can any one suggest any workaround?

AMERICAS 2017  = IF([AMERICAS AO]>0,[AMERICAS BA],"No Available")

 

1 ACCEPTED SOLUTION

Accepted Solutions
PoweBI Member
Member

Re: Error Expressions that yield variant data-type cannot be used to define calculated columns

thank you so much Hotchill,that's the requirments.May be i can change it with 00000.Thanks

3 REPLIES 3
HotChilli Established Member
Established Member

Re: Error Expressions that yield variant data-type cannot be used to define calculated columns

I don't think there is a workaround.  You need to decide what data type the calculated column has and then find acceptable values to go in there.  It's either going to be text or numeric, it can't be both at the same time.

PoweBI Member
Member

Re: Error Expressions that yield variant data-type cannot be used to define calculated columns

thank you so much Hotchill,that's the requirments.May be i can change it with 00000.Thanks

Community Support Team
Community Support Team

Re: Error Expressions that yield variant data-type cannot be used to define calculated columns

Hi @PoweBI,

 

Could you please mark the proper answers as solutions?

 

Best Regards,

Dale

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