cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Microsoft
Microsoft

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
Super User I
Super User I

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!


Proud to be a Super User helping 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.

View solution in original post

Helpful resources

Announcements
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Wave Release 2

Check out the updates in Power BI.

Overview of Power BI 2020 release wave 2!

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors