cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DaxUser101
Regular Visitor

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 Supplier
Solution Supplier

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 Supplier
Solution Supplier

Hi,

 

Try this:

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

View solution in original post

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors