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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
adrianlochan
Frequent Visitor

Sharing Sales

I have a Staff Table with Names, Rep Codes and Dates along with other info. The Staff in the table may have multiple Rep Codes and in some cases share Rep Codes. The Rep Code identifies what they are entitled to.
There is the Sales Table that does not have Staff Names, however has Rep Codes and dates to identify which staff should be credited for the sale and for what period, Qtrs for now. Which I can handle with a date table.
There is no disbursement between staff for sharing Rep Codes, they get the total credit for the sale for each Rep Code they have or share.
I am trying to figure out how to set up my model so I can calculate how much of the sales total should be allocated to each Staff.
I've tried the idea of a bridge table, grouping, none have been successful.
Sample of my Staff and Sales Tables:

Staff NameRep Code
EliseEGRE
EliseGTEG
EliseHCEG
EliseJHEG
EliseNNEG
EliseRMEG
GianniGTEG
GianniGTES
GianniVANC
JordanEGRE
JordanGTEG
JordanHCEG
JordanJHEG
JordanJHNS
JordanJHOP
NazlinJHNS
NazlinNSUN
NazlinRMNS
RakeshNSUN
RakeshRMEG
RakeshRMEH
RakeshRMNS

 

Effective DateRep CodeTotal AUM
12/29/2023EGRE6.76
12/29/2023JHNS22.38
12/29/2023EGRE54.6
12/29/2023JHOP75.4992
12/29/2023JHOP619.1979
12/29/2023EGRE1028.19
12/29/2023JHOP1371.7997
12/29/2023JHOP2074.5327
12/29/2023JHOP2302.8703
12/29/2023JHOP2411.486
12/29/2023EGRE2533.03
12/29/2023JHOP3238.5591
12/29/2023EGRE4809.9813
12/29/2023JHOP4848.776
12/29/2023JHOP4887.3595
12/29/2023RMEG17917335.84
12/29/2023JHNS8455808.236
12/29/2023JHOP8213107.53
12/29/2023JHOP3463551.404

Any help appreciated.
Adrian

6 REPLIES 6
v-priyankata
Community Support
Community Support

Hi @adrianlochan 
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.

v-priyankata
Community Support
Community Support

Hi @adrianlochan 
I wanted to check if you had the opportunity to review the information provided @Ashish_Mathur @MFelix . Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.

v-priyankata
Community Support
Community Support

Hi @adrianlochan 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

Ashish_Mathur
Super User
Super User

Hi,

Based on the 2 tables that you have shared, show the expected result very clearly.  Still better, would be to share the download link of an MS Excel file with yor formulas there.  I will try to convert those formulas into DAX measures.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
MFelix
Super User
Super User

Hi @adrianlochan ,

 

The problem I see with the data is that you have repeated values for rep codes for the different Staff this will not allow to have a unique value for each one so you won't be able to get that value for that specific staff:

MFelix_0-1742549076671.png

How do you know that the specific use of the rep code is for that user?

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi @MFelix 
That's a good question about the rep code. Each individual will have repcodes assigned to them. The reason some are shared is to identify partnerships between them to share the credit of sales for the purpose of calculating bonuses. For this team it does vary, some may not share rep codes, some do for that purpose.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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