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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Commission Based on number of Jobs

Hi there,

i am trying to figure out a measure i can use to calculate commission for Area Managers if the job reaches a threshold at end of month.

For e.g if Area manager has done more than 400 jobs, they get $2 per job for anything over 400 jobs & if they have done between 600-800, they get $3 per job.

I have the number of jobs table.

I have the rates table

I have Area Managers table

Please advise?

13 REPLIES 13
v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

As @Ashish_Mathur  said, what is the basis for the values in the expected results provided? I can’t seem to understand, please provide the correct number of tests and I will answer you as soon as possible.


Looking forward to your reply.


Best Regards,
Henry

 

Anonymous
Not applicable

@amitchandak  - Any help here?

amitchandak
Super User
Super User

@Anonymous , Can you share sample data and sample output in table format?

 

You can use a measure like, Assuming you have a Jobs measure

 


Sumx( Values(Table[Area Manger]) ,
Switch(True(),
[Jobs] > 600 , 3 *[Jobs],
[Jobs] > 400 , 3* [Jobs],
0))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak ,

here are the tables,

Basically, i am trying to see how to get an output as per my last table below where Area Managers would know when they are eligible for commission once they reach their threshold as per the rates table.

Please note Area Manager B & E has multiple threshold criteria.

 

 

 

Rates Table     
FromToRateFrom DateTo DateArea Managers
400 $2.1/06/202130/06/2021
400 $2.1/06/202130/06/2021B
0400$0.51/06/202130/06/2021B
900 $2.1/06/202130/06/2021D
400600$2.1/06/202130/06/2021E
601800$2.1/06/202130/06/2021E
801 $3.1/06/202130/06/2021E
900 $3.1/06/202130/06/2021F
      
People Table     
Syndicate NameArea Managers    
Platform 1A    
Platform 2B    
Platform 3C    
Platform 4D    
Platform 5E    
      
Output required     
Area ManagersSyndicate NameMonthendSum of jobsCommission 
APlatform 130/06/2021400  
BPlatform 230/06/2021900  
CPlatform 330/06/2021600  
DPlatform 430/06/2021800  
EPlatform 530/06/2021500  

 

 

 

Hi,

How did you arrive at the numbers in the last column of the desired table.  None of the previous 2 tables show the number of jobs completed.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

@Ashish_Mathur 

Sum of jobs you see here is the criteria table.

 

e.g If Area Manager A achieves >400 jobs a month , commission rate $2 should be calculated based on the number of jobs greater than 400. 

e.g 2 if If Area Manager B achieves <400 jobs a month , commission rate $0.5 should be calculated based on the number of jobs less than 400.

 

 

 

 

Output required     
Area ManagersSyndicate NameMonthendSum of jobsCommission 
APlatform 130/06/2021400  
BPlatform 230/06/2021900  
CPlatform 330/06/2021600  
DPlatform 430/06/2021800  
EPlatform 530/06/2021500

 

Hi,

In the last table, could you also fill the amount in the Commission table in an MS Excel file with your formula so that i can follow your logic clearly and also tally my answer with yours.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

I have slighlty adjusted the above table to below : Instead of Sum of jobs, i have changed it to count of jobs.

So my purpose is to calculate commission when it goes beyond the threshold value of jobs?

here is the formula which i used & not able to arrrive at any conclusion.

 

 

 

 

 

 

 

 

 

 

Output required

 

 

 

 

 

 

Area Managers

Syndicate Name

Monthend

Count of jobs

Commission calculation required

Rates table Threshold

 

A

Platform 1

30/06/2021

500

2*100

>400

 

B

Platform 2

30/06/2021

900

2*500

>400

 

B

Platform 2

30/06/2021

200

0.5*200

<400

 

D

Platform 4

30/06/2021

1000

2*100

>900

 

F

Platform 5

30/06/2021

1000

3*100

>900

 

If(Area Manager="A" & table(count of Jobs) >400, $2 *count of jobs > 400 )

example if Area manager has done 500 jobs at monthend, then commission should be calculated based on difference of jobs extra over 400(500-400) jobs i.e $2 * 100 jobs

if(And(Area Manager="B"& Table(count of jobs)>400,$2 * count of jobs > 400 ,  Table(count of jobs)<400,$2 * count of jobs < 400 jobs).

Hi,

Is countofjobs a measure?  Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

@Ashish_Mathur 

yes it's a measure. It counts the number of jobs for the area for the area manager .

As requeted, share the download link of the PBI file with your measure already written.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

@Ashish_Mathur 

 

I am unable to share the file due to confidential reasons: 

Here is te measure i used for Count of Jobs:

no of jobs= COUNT(Jobstable[JobId])

 

Hi,

Please anonymise data in your PBI file and share the download link.  Now with another table (Jobs Table) being introducted by you, i do not want to make any guesses about the structure of your data model, hence the request to share an anonymised PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors