How to Calculate Sales Bonus in PowerPivot?

mrxlsx

Board Regular
Joined
Dec 15, 2012
Messages
95
Hi all,

Good morning,

I have 3 tables namely fSa*****ok, dSalesman, dEmoluments.

1. fSa*****ok is l inked with dSalesman thru Salesm anKey column in the data model.

2. fSa*****ok is having a column namely SalesPoints for each Sales transaction.

3. dSalesman table is having SalesmanKey and their details like gender, age, ethnicity, education details.

4. dEmoluments is having the following columns.

dEmoluments:

[TABLE="width: 500"]
<tbody>[TR]
[TD]YearlyTargetPoints[/TD]
[TD]Bonus[/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]4000[/TD]
[TD]6000[/TD]
[/TR]
[TR]
[TD]6000[/TD]
[TD]8000[/TD]
[/TR]
[TR]
[TD]8000[/TD]
[TD]10000[/TD]
[/TR]
[TR]
[TD]10000[/TD]
[TD]14000[/TD]
[/TR]
</tbody>[/TABLE]


Now the question is, I want calculate the the YearlyBonus in the fSa*****ok respective to their SalesTargetPoints.


What should be my formula in PowerPivot?

Thank you
mrxlsx
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
It will be something like:

=CALCULATE(MAX(dEmoluments[Bonus]), FILTER(dEmoluments, dEmoluments[YearlyTargetPoints] >=[Sales Total]))
 
Upvote 0
Scottsen,

It is throwing up 14000 Bonus for all the records in the fSa*****ok. I think first we need to calculate the Yearly Sales Points achieved for each Salesman then compare the same with YearlyTargetPoints, right?

mrxlsx
 
Upvote 0

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top