cancel
Showing results for
Did you mean:
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
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
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.

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

Hi @PoweBI,