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

View solution in original post

3 REPLIES 3
HotChilli New Contributor
New Contributor

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

View solution in original post

v-jiascu-msft Super Contributor
Super Contributor

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.

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 119 members 2,659 guests
Please welcome our newest community members: