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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
lgs1983
Helper I
Helper I

Cannot Convert value of type text to type true false

Hi,

 

I am getting increasingly frustrated with the above error message as I can't understand why it's appearing for the below formula as all fields involved are text.

 

Does anyone have any ideas where I'm going wrong?

 

Thanks in advance


    IF(
        LOOKUPVALUE(CIS[companyID],CIS[DUNSNUM],GUODataCombine[DUNS],CIS[CompanyName],GUODataCombine[PartyName]),
        "Found", 
        "Not Found"
    )
2 ACCEPTED SOLUTIONS
Nathaniel_C
Community Champion
Community Champion

Hi @lgs1983 ,

The test you are making is returning a text value, not a true false value. Now if you could frame it so that is Lookupvalue(CIS[CompanyID]) = x, then it can evaluate that. You will probably end up using  && for multiple tests, or you could try ISBLANK(). But your test needs something to evaluate.

 

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Hi @lgs1983 ,

You may want to try ISBLANK()

Checks whether a value is blank, and returns TRUE or FALSE. The function surrounds the value you are testing.

However BLANK() returns a blank.

 

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel

Syntax

DAXCopy
ISBLANK(<value>)  

Parameters

Term Definition
valueThe value or expression you want to test.

Return value

A Boolean value of TRUE if the value is blank; otherwise FALSE.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

4 REPLIES 4
Nathaniel_C
Community Champion
Community Champion

Hi @lgs1983 ,

The test you are making is returning a text value, not a true false value. Now if you could frame it so that is Lookupvalue(CIS[CompanyID]) = x, then it can evaluate that. You will probably end up using  && for multiple tests, or you could try ISBLANK(). But your test needs something to evaluate.

 

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thanks @Nathaniel_C , it was me taking it for granted it would see the lookup as a true or false automatically, now amended to the following and works:

 

    IF(
        LOOKUPVALUE(CIS[companyID],CIS[DUNSNUM],GUODataCombine[DUNS],CIS[CompanyName],GUODataCombine[PartyName]) = BLANK(),
        "Found",
        "Not Found")
    )

Hi @lgs1983 ,

You may want to try ISBLANK()

Checks whether a value is blank, and returns TRUE or FALSE. The function surrounds the value you are testing.

However BLANK() returns a blank.

 

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel

Syntax

DAXCopy
ISBLANK(<value>)  

Parameters

Term Definition
valueThe value or expression you want to test.

Return value

A Boolean value of TRUE if the value is blank; otherwise FALSE.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Great, thank you.

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.