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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Tangi12
Frequent Visitor

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 @Tangi12 ,

 

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
Tangi12
Frequent Visitor

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 @Tangi12 ,

 

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.