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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
rbrechet
Helper I
Helper I

Mapping one account with two sales rep

Hello dear community.

 

I am facing the below challenge:

I am trying to map salesforce territory with my sales data in order to follow up sales representative performance.

This is normally simple but not if two sales representative share one account (one has 40% sales the other 60%).
Do someone has any clue about how to create formula to link sales % split with sales data ?

 

Many thanksexemple

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Alright, so you make a new column in fact table called rep key. The DAX formula looks like this:

 

Repkey = 'Fact1 Table'[Code]&" "&'Fact1 Table'[Sales rep]

 

You make a similar column in your rep table:

 

Repkey = 'Rep Table'[code]&" "&'Rep Table'[Sales rep]

 

Then you create a relationship between fact table and rep table with these columns.

 

Then you create a calculated column with this DAX formula:

 

Total amount = 'Fact1 Table'[Amount] * RELATED('Rep Table'[Split])

 

Let me know how it goes. I'll gladly elaborate.

View solution in original post

16 REPLIES 16

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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