How can I fix this dax ?

jamemoriaty

Banned user
Joined
Feb 3, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hello everyone, I have a report to calculate bonus of staff as :


sakuragihana_0-1676443794161.png


Table Bonus 1:

sakuragihana_2-1676444236477.png




3. Bonus for re enrollment

Bonus = # of Re Enroll OD x % The corresponding bonus level according to the table


Conditions apply for type Re Enrollment

1. Area code : all of area

2.% Re Enroll Student of campus is following percentage as table :

sakuragihana_1-1676443903723.png


Example : Staff E have 30 student re enrollment and % Re Enroll Student of campus is 120%

Bonus 3= 30 x 20,000 = 600,000

I use this dax to calculate bonus for staff. But I have a problem , the condition [% Target ] is greater than 90% is applied for a whole of campus not for everyone belong of campus.
Example :
sakuragihana_3-1676444479695.png

The dax just calculate for Campus code LTT that [% Target ] 107% and not calculate for every staff belong that LTT. I need the dax apply for every staff which [% Target ] is satisfy the table Re Enrollment

I post data in this link : https://app.powerbi.com/groups/me/reports/ac39c2eb-d6d9-46d6-9f87-3fe72272633e?ctid=d1005fc5-bff9-42...

Dax in sheet Bonus Sale Pre Open. Can everyone help me to fix that dax ?
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Cross-posted again:


It appears you have no intention of acknowledging or following our rules, so I don't think this is the forum for you.
 
Upvote 0

Forum statistics

Threads
1,215,326
Messages
6,124,260
Members
449,149
Latest member
mwdbActuary

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