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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
koushikvps
Regular Visitor

Help needed on Lookup value function

Hello Experts,

 

Please see the below table. i am trying to acheive the Parent column in Dax. Trying to lookup a value within the table. Also handle NULL's in the column C as well. in Excel, i can do a vlookp and derive the value, but, look up value function is not working as i there are duplicates in Column C. So not sure, what to do. need help.

 

ABCParent - it’s a Dax driven Column
1Apple5Fruits
2Orange5Fruits
3Banana5Fruits
4Computer  
5Fruits5Fruits
6Tomato10Vegetables
7Onion10Vegetables
8Cabbage10Vegetables
9Brocolli10Vegetables
10Vegetables10Vegetables
2 ACCEPTED SOLUTIONS
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @koushikvps,

Based on my test, you could refer to below steps:

Sample data:

1.PNG

Create a calculated column:

Parent = LOOKUPVALUE (Table1[B],Table1[A], 'Table1'[C])

Now you could see the result:

2.PNG

You can also download the PBIX file to have a view.

https://www.dropbox.com/s/ap40ktstz0tl4tn/Help%20needed%20on%20Lookup%20value%20function.pbix?dl=0

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi Daniel,

 

That worked. Thank you so much for the help.

 

View solution in original post

5 REPLIES 5
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @koushikvps,

Based on my test, you could refer to below steps:

Sample data:

1.PNG

Create a calculated column:

Parent = LOOKUPVALUE (Table1[B],Table1[A], 'Table1'[C])

Now you could see the result:

2.PNG

You can also download the PBIX file to have a view.

https://www.dropbox.com/s/ap40ktstz0tl4tn/Help%20needed%20on%20Lookup%20value%20function.pbix?dl=0

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Daniel,

 

That worked. Thank you so much for the help.

 

Anonymous
Not applicable

@koushikvps you could use the related function. Also if a relationhip exists on the column b in your fact and dimension you should be able to just drag and drop the field. Could you send a screenshot of your model?

 

https://msdn.microsoft.com/en-us/query-bi/dax/related-function-dax

Related Function doesn't help as i am doing a lookup within the same table. 

Anonymous
Not applicable

you could create a calculated table with distinct values linking fruit name and type(parent column) and then join it and use related or drag and drop value from that table

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.