Forum Discussion
commited2020
3 years agoFrequent 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 accord...
- Anonymous3 years ago
HI commited2020,
You can try to use the following calculated column formula if it suitable for your scenario:
formula = [COMMISSION] / PATHLENGTH ( SUBSTITUTE ( [BROKERS], "&", "|" ) )Regards,
Xiaoxin Sheng
FreemanZ
Super User
3 years agoaha, there is unclosing bracket,
try this:
Result =
VAR _count =
LEN([Brokers]) -
LEN(SUBSTITUTE([Brokers], "&", "")) +1
RETURN
DIVIDE([Commission], _count)
commited2020
3 years agoFrequent Visitor
now "_count " is underlined red.
i copy and paste the code from here.
- Anonymous3 years agoNot applicable
HI commited2020,
You can try to use the following calculated column formula if it suitable for your scenario:
formula = [COMMISSION] / PATHLENGTH ( SUBSTITUTE ( [BROKERS], "&", "|" ) )Regards,
Xiaoxin Sheng
- commited20203 years agoFrequent Visitor
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