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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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

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!




karun_r
Microsoft Employee
Microsoft Employee

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.