Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Staff Sharing Sales

Hello, any help or ideas is appreciated. I have a group of sales staff who share sales through what we call Rep Code. Each is assigned Rep Codes and some are shared. The sales table has records of ...
  • audreygerred's avatar
    audreygerred
    1 year ago

    Gotcha! OK - since that is what you want - here is how I did it... I took your Staff table and added that - then from that I created a dim table with just the Staff name and a dim table of just the rep codes. I then added in your Sales table. I then joined the Staff name dim to Staff table and the Rep Code dim to both the Staff (with a bi-directional join, which should be avoided, but it is needed here) and the Sales table (you would also need a date dim table so you could filter and stuff by dates, but I didn't do that here just to demo). In the visual, I put Staff name from the Staff Dim table and Rep code from the Rep Code dim table and the measure of Sales that I made using the sum of sales from the sales table. Here's the pbix I made: adrian_file