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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
BaronSdG
Resolver II
Resolver II

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

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
Krutigawale33
Responsive Resident
Responsive Resident

Hello @BaronSdG ,

Is this two tables are joined by any column?

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

Yes the two tables are joined with a column

 

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

Hi @BaronSdG ,

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_ENw4LG95HlPxGlUL8T4...

 

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.

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 @BaronSdG ,

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.

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.