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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Calculation between tables

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 IDSales
X20
X30
X40
XX45
XX50
XXX45
XXX40
XXX21

 

 

Commissions
Part IDCompany CommissionsCompany ID
X25%AA
X35%BB
X40%CC
XX25%BB
XX75%CC
XXX30%AA
XXX30%BB
XXX40%CC
y100%AA
YY50%BB
YY50%AA

 

 

 

2 REPLIES 2
v-frfei-msft
Community Support
Community Support

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 ) )

Capture.PNG

 

Pbix as attached.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Anonymous
Not applicable

Hi

thanks, but the commissions its sum of multiplication of sales and commission percent

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.