Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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" )
Solved! Go to Solution.
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
Proud to be a Super User!
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
ISBLANK(<value>)
value | The value or expression you want to test. |
A Boolean value of TRUE if the value is blank; otherwise FALSE.
Proud to be a Super User!
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
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
ISBLANK(<value>)
value | The value or expression you want to test. |
A Boolean value of TRUE if the value is blank; otherwise FALSE.
Proud to be a Super User!
Great, thank you.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
72 | |
38 | |
31 | |
26 |