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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi all
I'm very new to PowerBI and I'm trying to move my Tableau dashboards over, however I'm extremely stuck and none of the questions/answers on the forum have helped so far.
I need to add a column showing the last person who contacted a company.
for example - the table looks like this....
| Date | Customer | Contacted by |
| 01/03/2021 | Smiths | Sally |
| 28/02/2021 | Smiths | John |
| 12/02/2021 | Hammonds | Sally |
| 02/03/2021 | Smiths | Peter |
| 22/01/2021 | Hammonds | John |
| 14/11/2020 | Cartwrights | Peter |
| 03/03/2020 | Cartwrights | Hannah |
| 21/01/2021 | Hammonds | Keith |
The results should be....
| Date | Customer | Contacted by | Last contacted by |
| 01/03/2021 | Smiths | Sally | Peter |
| 28/02/2021 | Smiths | John | Peter |
| 12/02/2021 | Hammonds | Sally | Sally |
| 02/03/2021 | Smiths | Peter | Peter |
| 22/01/2021 | Hammonds | John | Sally |
| 14/11/2020 | Cartwrights | Peter | Peter |
| 03/03/2020 | Cartwrights | Hannah | Peter |
| 21/01/2021 | Hammonds | Keith | Sally |
I've tried.....
Solved! Go to Solution.
@Michsara , Try like
Last Contacted by = calculate(LASTNONBLANKVALUE('Table'[Date],MAX('Table'[Contacted By])),allexpect('Table','Table'[customer]))
or
Last Contacted by = calculate(LASTNONBLANKVALUE('Table'[Date],MAX('Table'[Contacted By])),filter(allselected('Table'),'Table'[customer] = max('Table'[customer])))
@Michsara , Try like
Last Contacted by = calculate(LASTNONBLANKVALUE('Table'[Date],MAX('Table'[Contacted By])),allexpect('Table','Table'[customer]))
or
Last Contacted by = calculate(LASTNONBLANKVALUE('Table'[Date],MAX('Table'[Contacted By])),filter(allselected('Table'),'Table'[customer] = max('Table'[customer])))
That's fantastic - the first option worked. Thank you so much 😊
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 33 | |
| 31 | |
| 19 | |
| 12 | |
| 11 |