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
SevsBo
Helper V
Helper V

Expression refers to Column object... which has error, but no such reference exists in DAX

I have Table 1 with several columns and a "New Column2" that has an error in it, so the results all equate to #ERROR.

I have added a second calculated column with LOOKUP that refers to Table 2 and a column within this table that doesn't have any errors. So the DAX looks something like:

 

OppName =
LOOKUPVALUE('Table 2'[Name], 'Table 2'[Id], 'Table 1'[Id])
 
None of these items have errors in them, but when I try to run this I get: This expression referes to a Column object named "New Column2", which has an error.
 
How is this possible as there is no reference to it in this formula?
 
SevsBo_0-1734616397264.png

 


 

2 REPLIES 2
Anonymous
Not applicable

Hi, @SevsBo 

Welcome to the Power BI forum.
Regarding your question, I noticed that although your expression does not directly include the column New Column2.
However, it states that the column in your expression needs to rely on your error column to run.

vjianpengmsft_0-1734657526278.png

You need to check that the red box is not calculated by relying on any other error columns. After my test, if your ID column does not depend on new column2, even if new column2 reports an error, it will not affect the operation of lookupvalue:

vjianpengmsft_1-1734657688097.png

vjianpengmsft_2-1734657699872.png

If you don't want to remove this erroneous column, you can use the following expression:

OppName = IFERROR(LOOKUPVALUE('Table 2'[Name], 'Table 2'[Id], 'Table 1'[Id]), BLANK())

 

 

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Apologies for the very belated reply.

 

I have checked the offending Column that is mentioned but it is entirely self-contained. It does have errors in it but it does not relate to this newly calculated column in any way.
Interestingly, if I delete that whole column, the one with the errors, then I simply get blank results from the new column, even though the data in the lookupvalue should return results.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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