cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors