In my organization various sales personnel could be part of many sales transactions, and I have a table below that shows for each sales personnel the amount revenue they were part of. However, depending on how a user is using the table, the pivot may double/triple count revenue data.
As an example when a user filter on SalesManager1, there will be a duplicate as both SalesPersonnel 1 and 3 have sold ProductA. However, When a filter on just SalesPersonnel1, there's no double count. similarly, when a user selects SalesManager4 although he has 2 Sales personnel reporting to him/her they were part of distinct sales transactions thus there's no duplicate.
I want to create a measure which flags when there's a potential duplicate in the view users are looking at. However, I cannot go back and change how the data model was built. Is there a way to do this all within the data model? I know I can probably create a pivot table share the filter/slicer, and then count # of sales personnel for the accounts and products, but I'm hoping for more of sophisticated solution... would appreciate any help/support you can provide!
thank you
SalesManager SalesPersonnel Acccount Product Revenue
SalesManager1 SalesPersonnel1 Acccount_A Product_A 100000
SalesManager1 SalesPersonnel1 Acccount_B Product_C 100000
SalesManager1 SalesPersonnel3 Acccount_A Product_A 100000
SalesManager2 SalesPersonnel3 Acccount_B Product_C 100000
SalesManager1 SalesPersonnel2 Acccount_B Product_C 100000
SalesManager1 SalesPersonnel2 Acccount_B Product_C 100000
SalesManager4 SalesPersonnel4 Acccount_B Product_A 100000
SalesManager4 SalesPersonnel4 Acccount_A Product_D 100000
SalesManager4 SalesPersonnel5 Acccount_A Product_B 100000
SalesManager4 SalesPersonnel5 Acccount_A Product_A 100000