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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
TuesdayApril
Helper I
Helper I

Sum Commission Tiers- Sum an If Statement?

Weekly Spread is the sum of 2 different tables spread amounts

I need the sum of commission for each tier, the below doesn't Sum for me:

Commission =
If([Weekly Spread] > [Start Amount],
MIN([Weekly Spread],
[End Amount]) - [Start Amount],
0)* [Commission%]
 
I tried this, but it is just taking the highest tier and applying that percentage. rather than adding the amounts from each tier below"
 TuesdayApril_0-1686141398090.png

 

Total Commission =

VAR SalesAmount = [Timesheet Spread] + [Adjustment Spread]
RETURN
    SWITCH (
        TRUE (),
        SalesAmount >= 11001, 0.12 * SalesAmount,
        SalesAmount >= 7501, 0.08 * SalesAmount,
        SalesAmount >= 5001, 0.04 * SalesAmount,
        SalesAmount >= 0, 0.02 * SalesAmount
    )
 
How do I get the above to add the commission on each segment?
 
Thanks in advance.
2 REPLIES 2
v-rzhou-msft
Community Support
Community Support

Hi @TuesdayApril ,

 

I couldn't find many value in your data model, like [Weekly Spread],[Start Amount],[End Amount]... Also [Timesheet Spread] and [Adjustment Spread] in your calculation.

Please share a sample file with me and show me a screenshot with me. This will make it easier for me to find the solution.

 

Best Regards,
Rico Zhou

 

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

I figured it out. I just used variables to sum each tier and then summed the values together. Thanks!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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