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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Sum per rows in different tables

Hi all,

 

I have 2 columns in 2 different tables with boolean numbers.

 

I need to add, for each row, these values. How to do it? 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I Couldnt change to both, therefore I solved the problem by doing this:

1) Connected both tables to the Component one

2) I used this formula to check that in both columns there is a yes. If so, return the number 1

 

SanityCheck_EMEA = IF('Connectivity Coverage analysis xlsx_https://iontradingcom sharepoint com/teams/F'[EMEA ] = RELATED(components_mkt[europe]) && 'Connectivity Coverage analysis xlsx_https://iontradingcom sharepoint com/teams/F'[EMEA ]="yes",1,0)

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hello @Anonymous ,

Is this two tables are joined by any column?

Can you able to provide some context data to better understand the scenario

Anonymous
Not applicable

Yes the two tables are joined with a column

 

The data in the columns are not much actually, just 0 o 1

Hi @Anonymous ,

Try the following formula:

 

Measure = SUM('Table'[Value]) + SUM('Table (2)'[Result])

image.png

 

This is my PBIX file.

https://microsoftapc-my.sharepoint.com/:u:/g/personal/v-lazhang_microsoft_com/EV_ENw4LG95HlPxGlUL8T4gBSFyemRcuHKT-1618knnweg?e=47XWGL

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

Anonymous
Not applicable

hi @v-kkf-msft 

 

I have tried the formula but it doesn't work.

1) When I add it to the table, it creates more rows of a single record e.g. for the first column we have more 'Edit' rows (maybe the relationship between the table is causing this).

BaronSdG_1-1615889475538.png

 

2)  the sum is giving back a very high number e.g 82 

 

image.png

Hi @Anonymous ,

You can try to change the relationship between the tables to Both.

image.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

Anonymous
Not applicable

I Couldnt change to both, therefore I solved the problem by doing this:

1) Connected both tables to the Component one

2) I used this formula to check that in both columns there is a yes. If so, return the number 1

 

SanityCheck_EMEA = IF('Connectivity Coverage analysis xlsx_https://iontradingcom sharepoint com/teams/F'[EMEA ] = RELATED(components_mkt[europe]) && 'Connectivity Coverage analysis xlsx_https://iontradingcom sharepoint com/teams/F'[EMEA ]="yes",1,0)

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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