Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

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")

 

  • Anonymous's avatar
    Anonymous
    7 years ago

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

3 Replies

  • HotChilli's avatar
    HotChilli
    Icon for Community Champion rankCommunity Champion

    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.

    • Anonymous's avatar
      Anonymous
      Not applicable

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

  • v-jiascu-msft's avatar
    v-jiascu-msft
    Icon for Microsoft Employee rankMicrosoft Employee

    Hi Anonymous,

     

    Could you please mark the proper answers as solutions?

     

    Best Regards,

    Dale