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
Anonymous
Not applicable

Lookupvalue Issue "Column Name Not Found" when adding Search Value 1

I have two tables:

 

1. A table that holds Quartiles by Different levels of a company (Company Location, Company Grouping, etc all in one column).

 

2. A table that holds the company hierarchy with the Company Location column, Company Grouping in separate columns.

 

I wanted to create a DAX measure that looks up the quartile value based on Company Location.  I created the measure as the below, but the bold column is getting an error stating the column name cannot be found. Both columns are text that are being compared. Both columns have matching data.  

 

What am I doing wrong?

 

Quartile by YoY = Lookupvalue('PPR Quartiles'[Quartile1],'PPR Quartiles'[Geo ID],'Company Hierarchy'[Company Location])
1 ACCEPTED SOLUTION
Pragati11
Super User
Super User

Hi @Anonymous ,

 

If you create a calculated column rather than a measure then the error will not appear.

The reason is LOOKUPVALUE dax function returns a value fro every row, so you can't use it as a measure.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Thanks for the responses!  I thought that may be the answer, which is unfortunate since it is a live connect and I cannot manipulate the data...

wdx223_Daniel
Super User
Super User

this function require the values must be identical exactly

Pragati11
Super User
Super User

Hi @Anonymous ,

 

If you create a calculated column rather than a measure then the error will not appear.

The reason is LOOKUPVALUE dax function returns a value fro every row, so you can't use it as a measure.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

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.

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.