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
commited2020
Frequent Visitor

splitting between brokers

Hello.

I have a sales data of brokers . Some sales are done by 2 or 3 brokers which get split among themselves 50-50 or 1/3 accordingly.

I want to split commission depending on the situation according and also i want to count the sales individually

to give you an example:
When a broker closes a deal i want to count that as 1 point
and if they closed a deal in collaboration with another broker each broker will split the point accordingly,
if they are two sales rep 0,5 points each
if they are 3 0,33 each.

Thank you

 

Data set example

ACCOUNTBROKERSCOMMISSION
KYCKEVIN$10000
BUNGIEKEVIN & JOHN$24000
BUNGIEBILL & KEVIN & JOHN$15000
ABCBILL & JOHN$12000

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @commited2020,

You can try to use the following calculated column formula if it suitable for your scenario:

 

formula =
[COMMISSION] / PATHLENGTH ( SUBSTITUTE ( [BROKERS], "&", "|" ) )

 

1.PNG

Regards,

Xiaoxin Sheng

View solution in original post

6 REPLIES 6
commited2020
Frequent Visitor

Firsto of all thank you i am new to power bi.

Token comma expected and "RETURN" is underlined red.

What should i do?

aha, there is unclosing bracket,

try this:

Result = 
VAR _count =
LEN([Brokers]) - 
LEN(SUBSTITUTE([Brokers], "&", "")) +1
RETURN
DIVIDE([Commission], _count)

now  "_count " is underlined red.

i copy and paste the code from here. 

Anonymous
Not applicable

HI @commited2020,

You can try to use the following calculated column formula if it suitable for your scenario:

 

formula =
[COMMISSION] / PATHLENGTH ( SUBSTITUTE ( [BROKERS], "&", "|" ) )

 

1.PNG

Regards,

Xiaoxin Sheng

Thank u very much but how do i assign the results to each broker accordingly?

For example Kevin and John shoul each get 12.000 and i want to be able to count the whole amount for each one of them

FreemanZ
Super User
Super User

hi @commited2020 

try to add a column with this:

Result = 
VAR _count =
LEN([Brokers]) - 
LEN(SUBSTITUTE([Brokers], "&", "") +1
RETURN
DIVIDE([Commission], _count)

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.