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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Customize matrix subtotals

Hi there!

 

I'm currently struggling with a report that should calculate the bonuses for our Salesteam. This bonus consists of 3 items (Bonus UNI, Bonus UNF & Bonus PA). These 3 items are summed, which gives us the 'Bonus Total' (i.e. Bonus Algemeen Totaal (voor eval.) - see printscreen). Then our Sales manager decides to multiply the 'Bonus Total' by x0,9, x1 or x1,1 (depending on the fact if my colleagues did a good job or not during that week). 

This gives us the 'Final Bonus Total' (i.e. Bonus Algemeen Totaal (na eval.) - see printscreen. 

 

Unfortunately, I'm having some trouble to summarize the 'Final Bonus Total' per week (= sum of 'Final Bonus Total' for all colleagues). 

 

1. Desired result: Printscreen Bonus.jpg

2. Datamodel. 

See printscreen. 

Relations Bonus.jpg

 

3. What I have done so far:

I made the following measures:

- Bonus UNI Total

- Bonus UNF Total

- Bonus PA Total

- Bonus ALGEMEEN TOTAAL (voor eval.), which is the sum of the 3 measures above: 

Bonus ALGEMEEN TOTAAL (voor eval.) =
'Metingen objectieven & bonus'[Bonus UNI TOTAL]+'Metingen objectieven & bonus'[Bonus UNF TOTAL]+'Metingen objectieven & bonus'[Bonus PA TOTAL]
- Multiplicator: as the multiplicator is decided for each colleague seperately, I decided to make the multiplicator-value on subtotal-level = 0
Multiplicator =
IF (
    ISINSCOPE ( 'TUSSENTABEL COLLEGA''s'[Naam collega] ),
    CALCULATE ( AVERAGE ( BONUSE[Multiplicator evaluatie] ) ),
    0
)
- Bonus ALGEMEEN TOTAAL (na eval.): this is currently the issue... I don't get any further than this (in which the '0' should probably be replaced by another expression):
Bonus ALGEMEEN TOTAAL (na eval.) =
VAR BonusnaEval = [Bonus ALGEMEEN TOTAAL (voor eval.)]*'Metingen objectieven & bonus'[Multiplicator]

RETURN

if(ISINSCOPE('TUSSENTABEL COLLEGA''s'[Naam collega]), BonusnaEval, 0)
 
 
 
MANY THANKS FOR YOUR HELP! 
1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try to create another measure like so:

Bonus ALGEMEEN TOTAAL (na eval.) 2 =
SUMX (
    VALUES ( 'TUSSENTABEL COLLEGA''s'[Naam collega] ),
    [Bonus ALGEMEEN TOTAAL (na eval.)]
)

 

 

Best Regards,

Icey

 

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

1 REPLY 1
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try to create another measure like so:

Bonus ALGEMEEN TOTAAL (na eval.) 2 =
SUMX (
    VALUES ( 'TUSSENTABEL COLLEGA''s'[Naam collega] ),
    [Bonus ALGEMEEN TOTAAL (na eval.)]
)

 

 

Best Regards,

Icey

 

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

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors