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
Anonymous
Not applicable

Similar Function to Xlookup in DAX

Hi,

I am trying to do a basic lookup in DAX from the Parent SEQ Column to the ASM SEQ and return the ASM SEQ RANK (See picture below). I know that lookups can be handled in other programs easily like PQ but for my purpose it has to be in DAX as I am trying to create a ragged hierarchy which I can refresh in Excel format (I need hide members feature for pivot table). I imagine it is some variation of the lookupvalue function but I cannot get it to work.

 

DaxUser101_0-1632410222132.png

 

Thanks

1 ACCEPTED SOLUTION
jppv20
Solution Sage
Solution Sage

Hi,

 

Try this:

Result = LOOKUPVALUE('Table'[ASM SEQ RANK],'Table'[ASM SEQ],'Table'[PARENT SEQ])
 
Jori

View solution in original post

2 REPLIES 2
jppv20
Solution Sage
Solution Sage

Hi,

 

Try this:

Result = LOOKUPVALUE('Table'[ASM SEQ RANK],'Table'[ASM SEQ],'Table'[PARENT SEQ])
 
Jori
Anonymous
Not applicable

Thanks. I should have been able to figure that out. I am new to DAX and Its hard to learn it when you have been using Power Query forever.

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.

Top Solution Authors