Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
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.
| A | B | C | Parent - it’s a Dax driven Column |
| 1 | Apple | 5 | Fruits |
| 2 | Orange | 5 | Fruits |
| 3 | Banana | 5 | Fruits |
| 4 | Computer | ||
| 5 | Fruits | 5 | Fruits |
| 6 | Tomato | 10 | Vegetables |
| 7 | Onion | 10 | Vegetables |
| 8 | Cabbage | 10 | Vegetables |
| 9 | Brocolli | 10 | Vegetables |
| 10 | Vegetables | 10 | Vegetables |
Solved! Go to Solution.
Hi @koushikvps,
Based on my test, you could refer to below steps:
Sample data:
Create a calculated column:
Parent = LOOKUPVALUE (Table1[B],Table1[A], 'Table1'[C])
Now you could see the result:
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
Hi @koushikvps,
Based on my test, you could refer to below steps:
Sample data:
Create a calculated column:
Parent = LOOKUPVALUE (Table1[B],Table1[A], 'Table1'[C])
Now you could see the result:
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
Hi Daniel,
That worked. Thank you so much for the help.
@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.
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
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 38 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 68 | |
| 65 | |
| 30 | |
| 26 | |
| 25 |