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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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