March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
Register NowGet certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
I'm working through a payroll file which features employee ID and name, and it includes instances where an employee name has changed, for example:
Year | ID | Name |
2021 | 1 | AA |
2021 | 2 | BB |
2021 | 3 | CC |
2021 | 4 | DD |
2022 | 1 | AA |
2022 | 2 | BB |
2022 | 3 | CE |
2022 | 4 | DE |
2023 | 1 | AA |
2023 | 2 | BB |
2023 | 3 | CE |
2023 | 4 | DE |
I am trying to figure out how to create a DAX column that would return only the most recent name for each employee ID, i.e. only the items at the end of the table. Any help appreciated on this one!
Solved! Go to Solution.
Try this DAX code for the calculated column:
Hello @ldoriejhl ,
this is your formula:
Try this DAX code for the calculated column:
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
Check out the November 2024 Power BI update to learn about new features.
User | Count |
---|---|
121 | |
98 | |
85 | |
69 | |
61 |
User | Count |
---|---|
138 | |
121 | |
109 | |
99 | |
96 |