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
Anonymous
Not applicable

Change of sales rep throughout the year

Hi,

 

I'm really hoping someone can help me with this.

 

I have a sales rep who has retired and all of his clients have switched over to 3 different people. Instead of manually going into my dataset and figuring out if each client has stayed or left, is there a way to do this in power bi or query. I just want to figure out if the new sales rep has maintained that client or if they left the company.

 

Thanks,

Ivana

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

But seems like a case of SCD. Refer this video from Guyinacube : https://www.youtube.com/watch?v=tKeaQpWynzg

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
Anonymous
Not applicable

Hello,

Thanks for the reply.

Here's an example for 2019:

Account Sales Rep
A Adam
B Barb
C Adam
D Brad
E Sam

However, in 2020 Adam retired and account A went to Barb and account C went to Sam. So it would look like this:

Account Sales Rep
A Barb
B Barb
C Sam
D Brad
E Sam

Some how i need to dax this so when i run a report on total accounts per sales rep I can see that Barb and Sam were able to keep the accounts that were transferred from the retired rep.

Thanks 🙂

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.