Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi,
I have 2 tables, sales and commissions by item for a company
I need to sum the commissions by a company
please help with DAX
| SALES | |
| Part ID | Sales |
| X | 20 |
| X | 30 |
| X | 40 |
| XX | 45 |
| XX | 50 |
| XXX | 45 |
| XXX | 40 |
| XXX | 21 |
| Commissions | ||
| Part ID | Company Commissions | Company ID |
| X | 25% | AA |
| X | 35% | BB |
| X | 40% | CC |
| XX | 25% | BB |
| XX | 75% | CC |
| XXX | 30% | AA |
| XXX | 30% | BB |
| XXX | 40% | CC |
| y | 100% | AA |
| YY | 50% | BB |
| YY | 50% | AA |
Hi @Anonymous ,
Create a measure as below. If it doesn't meet your requirement, kindly share your excepted output to me.
Measure =
VAR k =
FILTER ( Commissions, Commissions[Part ID] IN VALUES ( SALES[Part ID] ) )
RETURN
CALCULATE ( SUM ( Commissions[Company Commissions] ), KEEPFILTERS ( k ) )
Pbix as attached.
Regards,
Frank
Hi
thanks, but the commissions its sum of multiplication of sales and commission percent
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 70 | |
| 51 | |
| 42 | |
| 29 | |
| 22 |
| User | Count |
|---|---|
| 142 | |
| 119 | |
| 56 | |
| 37 | |
| 32 |