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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Honne2021
Helper II
Helper II

Getting latest instance in a row of events

Hi, I have a list of data that shows an employees job history each row. An employee may  have 1 up to 30 or even 50 rows of data that signifies an event in their work. It can be a promotion, termination, re hire. The data looks like this (see below). My current formula only gets the employees TEAM at first instance when it should capture the latest TEAM. In this example, the employee as of date should be assigned in Supply Chain. 

Formula: Current Employee Count = CALCULATE(DISTINCTCOUNT('Book3[Employee ID]), FILTER( 'Book3', GSC[Effective End Date] >= [Max Date]) -> to get the headcount of the current month

 Max Date = MAX( Date) -> to get the max of the current month


Employee IDHiring DatePrevious TeamCurrent TeamEventEvent StartEvent EndSeq
123450028/01/2011 TechHire01/01/202128/02/20221
123450028/01/2011TechMarketingPromote01/03/202230/04/20222
123450028/01/2011MarketingSupply ChainTransfer01/05/202231/12/99993



1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Honne2021 , refer if my blog on the same topic can help

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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Honne2021 , refer if my blog on the same topic can help

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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.