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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Alicia_Anderson
Resolver I
Resolver I

Conditional Column based on Text.Contains gives sporadic error

I have 2 columns defined as Text (Reported in Release & Support Version).   I replaced all nulls in each column.   I have logic to use either the value from the first column or the 2nd column field to create the new column (Rep Release/Version).   This part works fine.   

Next I want to create another conditional column based on the results of the new column.   First I added a step to ensure the new column (Rep Release/Version) was defined as Text.  I am using Text.Contains logic to determine value for new field.   

 

I am getting the error "We cannot convert the value null to type Logical" for only a percentage of values.  This makes no sense because there is no null value.  Please help.  

 

Alicia_Anderson_0-1636416295445.png

Alicia_Anderson_1-1636416354511.png

 

1 ACCEPTED SOLUTION
Alicia_Anderson
Resolver I
Resolver I

I finally figured out the problem.  There was an additional field that I used in the conditional column (which was not included in my screenshot).   That field still had some null values.   

View solution in original post

3 REPLIES 3
Alicia_Anderson
Resolver I
Resolver I

I finally figured out the problem.  There was an additional field that I used in the conditional column (which was not included in my screenshot).   That field still had some null values.   

Anonymous
Not applicable

Hi @Alicia_Anderson ,


Could you tell me if your problem has been solved?
If it is, kindly Accept it as the solution. More people will benefit from it.
Or you are still confused about it, please provide me with more details about your problem.


Best Regards,
Stephen Tao

PhilipTreacy
Super User
Super User

Hi @Alicia_Anderson 

 

It's hard to debug this without the source data and your query code - can you supply them?

 

You say First I added a step to ensure the new column (Rep Release/Version) was defined as Text - is this working for all rows?  How did you implement this?

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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