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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
MITeam
Frequent Visitor

Most Recent Field Based on Date

Hi. I am trying to create a table to show candidate name / Location info / total hours - I need a slicer for date range and I need one line per candidate but they can work in many locations so I need to somehow pull through 1 location which will be the most recent one worked in the date range selected

 

My table would be Name / Recent Location / Total hours at all locations all based on the date range in a slicer.

 

I cant work this out. In excel I guess I would do a max if on the date and xlookup on a concatenation of the max date and candidate name to pull through the most recent locations etc.

 

The date selector would not necessarily include thier most recent shift so it has to be dynamic to what is selected.

 

Any help appreciated - I am going cross eyed

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@MITeam , refer if this approch can

 

Latest
https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0

https://amitchandak.medium.com/power-bi-get-the-sum-of-the-last-latest-value-of-a-category-f1c839ee8...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@MITeam , refer if this approch can

 

Latest
https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0

https://amitchandak.medium.com/power-bi-get-the-sum-of-the-last-latest-value-of-a-category-f1c839ee8...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Appreciate it - I was havong a moment and could not work out what to even search for lol

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.