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
karun_r
Employee
Employee

Problem with a computed column

I am using the below formula to generate a computed column

 

Organization =
IF(ISBLANK(ColumnA),
IF(ISBLANK(ColumnB),
ColumnC,
ColumnB),
ColumnA)

 

All the three columns (ColumnA, ColumnB and ColumnC) are of text datatypes. But I am seeing the error

 

expressions that yield variant data-type cannot be used to define computed columns

 

with the computed column. Any idea what  could be the reason?

1 ACCEPTED SOLUTION

Thanks for the reply but I figured out the root cause for this. It was because of some null values in the incoming data. The preview was misleading me. Once I refreshed all the datasets I stumbled upon the rootcause.

View solution in original post

2 REPLIES 2
fhill
Resident Rockstar
Resident Rockstar

Can you post some sample raw data so we can test out?  Your code seems correct, so there are probably external factors at work...




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




Thanks for the reply but I figured out the root cause for this. It was because of some null values in the incoming data. The preview was misleading me. Once I refreshed all the datasets I stumbled upon the rootcause.

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.