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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
nidhs909
Frequent Visitor

calculate dynamic multiplication

Hello, 

 

This is my table and what i would like to achieve is, 

      

     If Threshold >= 3, calculate (BonusAmt * OnshoreCount * OnshoreCount * 1.15)

     else  (BonusAmt * OnshoreCount * OnshoreCount)

 

Note that Bonus Amount itself is a measure and below is the formula. 

 

BonusAmt = if(Merged[Tier] == "TIER1" && Merged[OffOn] == "ONSHORE",LOOKUPVALUE(BonusRates[Tier1On],BonusRates[Grade],Merged[Employees.Grade]),
        if(Merged[Tier] == "TIER1" && Merged[OffOn] == "OFFSHORE",LOOKUPVALUE(BonusRates[Tier1Off],BonusRates[Grade],Merged[Employees.Grade]),
        if(Merged[Tier] == "TIER2" && Merged[OffOn] == "OFFSHORE",LOOKUPVALUE(BonusRates[Tier2Off],BonusRates[Grade],Merged[Employees.Grade]),
        if(Merged[Tier] == "TIER2" && Merged[OffOn] == "ONSHORE",LOOKUPVALUE(BonusRates[Tier2On],BonusRates[Grade],Merged[Employees.Grade])
))))

 

 

 

nidhs909_0-1734699066497.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @nidhs909 

 

I've simply modeled your data, please check to see if it matches your situation.

vzhangtinmsft_0-1734942187410.png

If this does not solve your problem, please provide more example data.

How to provide sample data in the Power BI Forum - Microsoft Fabric Community

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi, @nidhs909 

 

I've simply modeled your data, please check to see if it matches your situation.

vzhangtinmsft_0-1734942187410.png

If this does not solve your problem, please provide more example data.

How to provide sample data in the Power BI Forum - Microsoft Fabric Community

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Bibiano_Geraldo
Super User
Super User

Hi @nidhs909 ,

You can achieve your goal using this DAX measure:

FinalBonus = 
IF(
    Merged[Threshold] >= 3,
    [BonusAmt] * Merged[OnshoreCount] * Merged[OnshoreCount] * 1.15,
    [BonusAmt] * Merged[OnshoreCount] * Merged[OnshoreCount]
)

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors