Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

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
Anonymous
Not applicable

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

View solution in original post

3 REPLIES 3
v-jiascu-msft
Employee
Employee

Hi @Anonymous,

 

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.
HotChilli
Super User
Super User

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
Not applicable

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.