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
Simple_one
Helper I
Helper I

Need help for applying complicated condition for dax

Hello everyone,

I have 2 table below :

Table 1 :

Simple_one_0-1692073288142.png

Table 2 :

Simple_one_1-1692073320733.png

Table 2 is explained below :

Simple_one_2-1692073359111.png

Condition for calculating bonus for Group 1 -> 7:

1.% New Std PD and Re open vs Target >= 90%

2.If % New Student PD vs New Enrol PD Target < 80% , the bonus will be lowered by 1 level ( Note : If the New Student PD vs New Enrol PD Target is smaller than 80% and the bonus at level 1, the bonus will not be received)

3.If % New Student PD vs New Enrol PD Target < 80% and Campus code is Group 6 or Group 7, the bonus will be lowered by 1 level (Note : If the New Student PD vs New Enrol PD Target is smaller than 80% and the bonus at level 1, the bonus will be minus 500,000)

 

Condition for calculating bonus for Group 8:

1.% New Std PD and Re open vs Target >= 80%

2.If % New Student PD vs New Enrol PD Target < 65% , the bonus will be lowered by 1 level ( Note : If the New Student PD vs New Enrol PD Target is smaller than 65% and the bonus at level 1, the bonus will be minus 500,000)

 

Example 1:

Campus NCT has :

% New Std PD and Re open vs Target = 103%

% New Student PD vs New Enrol PD Target = 75%

Bonus of Campus NCT (belong Group 2 ) is level 2: 9,000,000 ( with % New Std PD and Re open vs Target =103%) . However, because % New Student PD vsa New Enrol PD Target is smaller than 80% , so the bonus will be lowered by 1 level . The bonus will be level 1 =7,000,000

 

Example 2:

Campus BD-BCM:

% New Std PD and Re open vs Target = 98%

% New Student PD vs New Enrol PD Target = 50%

Bonus of Campus BD-BCM (belong Group 6) is level 2 : 3,000,000 ( with % New Std PD and Re open vs Target =98%) . However, because % New Student PD vsa New Enrol PD Target is smaller than 80% , so the bonus will be : 2,500,000

 

Example 3:

Campus HN-GP:

% New Std PD and Re open vs Target = 86%

% New Student PD vs New Enrol PD Target = 48%

Bonus of Campus HNI-CT (belong Group 8 is level 1 : 2,000,000 ( with % New Std PD and Re open vs Target =86%) . However, because % New Student PD vsa New Enrol PD Target is smaller than 65% , so the bonus will be : 1,500,000

 

I have a power BI in this link : https://drive.google.com/file/d/1KpeOK1IfKS0hE_6FJy5rv0ZHByDIDmd5/view?usp=drive_link 

This condition is so complicated for me. Please help me for making this dax ! Thank you

 

3 REPLIES 3
Alef_Ricardo_
Resolver II
Resolver II

Hello Simple_one!

I see that you have a complex DAX problem that you need help with. From what I understand, you have two tables and you need to calculate the bonus for different groups based on certain conditions. It seems like the conditions for calculating the bonus are different for each group and depend on various factors such as the percentage of new students, the campus code, and the target values.

 

Based on the information you provided, it seems like you could use a combination of `IF` and `SWITCH` statements to calculate the bonus for each group. You could use `IF` statements to check if the conditions for each group are met and then use a `SWITCH` statement to determine the bonus level based on the group and the conditions.

However, without more information about your data model and the exact calculations you need to perform, it's difficult for me to provide a more specific solution. If you could provide more details about your data model and the calculations you need to perform, I would be happy to help you further.

 

In the meantime, you might find it helpful to check out some tutorials on using DAX in Power BI. There are many resources available online that can help you learn more about DAX and how to use it effectively in Power BI. For example, here are some video tutorials that might be helpful:

 

Hi @Alef_Ricardo_ ,

Data model I made this in the power BI file in the link .

I need the output of calculation as :

Simple_one_0-1692672435148.png

 

 

Thank you so much if you can help me !

Hello everyone,

Please someone help me !

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.