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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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