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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
jeece
New Member

Formula like vlookup

Hi,

 

I need to have the Code1  for each row.  A row has an Line id, the parent id, and the line level (1 to 3).

Line with level 1 has a code, and I need to have the code for each line into code1.

With excel I am using a vlookup formula and could not find the same thing with Power BI. If somebody has the start of a solution it will be nice.

 

Thanks in advance

Idlig Idparent Level Code Code1
1                       1     AAA
2           1          2
3           1          2
4           2          3

1 ACCEPTED SOLUTION
Kerrymr
Helper I
Helper I

Hi Jeece,

 

Did you try the lookupvalue  function?

 

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

 

Regards,

K.

 

View solution in original post

2 REPLIES 2
Kerrymr
Helper I
Helper I

Hi Jeece,

 

Did you try the lookupvalue  function?

 

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

 

Regards,

K.

 

Thanks a lot it was exactly what I was looking.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.