Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi, I have a Workagreement table, which includes Employee.id and Workagreement.id. I need to create a calculated table for the latest workagreement (biggest Workagreement.id) by employee but not able to find a solution. Please maybe someone here can help me.
My measure:
Solved! Go to Solution.
Hi @henkka ,
Please follow these steps:
(1) Create new table and measure
Max = CALCULATE(MAX('Table'[Workagreement.id]),FILTER(ALL('Table'),'Table'[Employee.id]= MAX('Table'[Employee.id])))
Table 2 = FILTER(ALL('Table'),'Table'[Workagreement.id]=[Max])
(2)Final output
Best Regards,
Gallen Luo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @henkka ,
Please follow these steps:
(1) Create new table and measure
Max = CALCULATE(MAX('Table'[Workagreement.id]),FILTER(ALL('Table'),'Table'[Employee.id]= MAX('Table'[Employee.id])))
Table 2 = FILTER(ALL('Table'),'Table'[Workagreement.id]=[Max])
(2)Final output
Best Regards,
Gallen Luo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you very much, modified this a bit as I don't need other columns from the table, but works like a charm!
If someone seeks this and has similar need that I have, modify the second part of the dax as this:
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 63 | |
| 53 | |
| 42 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 123 | |
| 105 | |
| 45 | |
| 32 | |
| 24 |