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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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.   

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.

Top Solution Authors
Top Kudoed Authors