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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Index match Duplicate

Hi All

Il make this simple to understand

I have a data - for example Name and Location 
Each time a duplicate name appears down the row -indicate person most recent location.
For example 

Name        Location
John 1         Milan   
John 1        London

in excel i use the index match function - as the Match(fx) will bring me John 1 (row level 2 (most recent entry))

how do i trnslate it into PBI - 🙂

1 ACCEPTED SOLUTION
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

Have you solved your problem?

If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

If you still need help, please feel free to ask.

Best Regards,

Cherry

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

Have you solved your problem?

If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

If you still need help, please feel free to ask.

Best Regards,

Cherry

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Nishantjain
Continued Contributor
Continued Contributor

You will need a third row that you can use to find the latest entry. In Excel, you can use the row but in Power bi, you don't have that. 

 

You can add it in two ways

 

1. In Power Query, add an index column. Make sure you sort your data in the right order before you add the index column

 

2. Better still, you can use another column such as date. 

 

Next, use the third column to identify the last entry using max/ rankx function ( or something similar). 

 

Thanks

v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous ,

 

I still have a little confused about your requirement. 




in excel i use the index match function - as the Match(fx) will bring me John 1 (row level 2 (most recent entry))



 

If it is convenient, could you share your desired output so that I could understand your logic better and get the solution.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.