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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Power BI SUMIFS on another table

Hello everybody

 

I have a maybe easy question but I dont find the way to do it easily : 

 

Table1 : 

 

ABC
Peter10Daughter
Franck20Son
Mark30Daughter

 

Table2 :

 

DEF
PeterPeter_Son100
PeterPeter_Daughter450
FranckFranck_Son600

 

I woud like : a sumifs + concatenate => SUMIFS(Table2[ColonneF], Column_E = (Column_A & Column_C) ) )  onthe table1

 

I dont have a direct unique key between the two tables that is why the join is a little bit complicated.

 

Kind regards, thanks !

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

You can create a calculated column as below in Table1:

Column = 
CALCULATE (
    SUM ( 'Table2'[F] ),
    FILTER ( 'Table2', 'Table2'[E] = 'Table1'[A] & "_" & 'Table1'[C] )
)

yingyinr_0-1661248478973.png

Best Regards

View solution in original post

3 REPLIES 3
AUaero
Responsive Resident
Responsive Resident

Create a calculated column on Table1 to create a join to Table2:

AUaero_2-1660847051832.png

 

 

AUaero_1-1660847023092.png

 

Anonymous
Not applicable

Thank you, I thought about it but I would like to do it in DAX.

 

I dont find the equivalent of MAX for Double, you know when you make column_values = MAX(colum_values_2) 

 

I am looking the equivalent for a String column like

 

CALCULATE( SUM(table_2[column_F],

table_2[column_D] = table_1[column_A])

 

or 

 

table_2[column_E] = table_1[column_A] & "_" & table_1[column_C]))

 

without joining the two tables, just a kind of sumIF

 

Kind regards

Anonymous
Not applicable

Hi @Anonymous ,

You can create a calculated column as below in Table1:

Column = 
CALCULATE (
    SUM ( 'Table2'[F] ),
    FILTER ( 'Table2', 'Table2'[E] = 'Table1'[A] & "_" & 'Table1'[C] )
)

yingyinr_0-1661248478973.png

Best Regards

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.