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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.