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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
AFra
Helper III
Helper III

Sum of two columns (each in a different table) grouped by

Hi all, 

 

I have 3 tables : 

- an index table linked to two other tables (NOM_CODE)

- a table in which I count X (Count of CodeCADASTRE)

- a table in which I count Y (Count of N° SISP)

Capture.PNG

I would like a Total column that calculates for each line of NOM_CODE the sum of the two other columns.

For example for "2040 - En bords de soignes" I would have 1751. 

 

Any ideas? 

Thanks in advance! 

 

Ana 

1 ACCEPTED SOLUTION
Thim
Resolver V
Resolver V

Try make a make a new meassure with 2 count formula looking something like this
Total Count = Count(CodeCADASTRE) + Count(N° SISP)

 

When you put this in with your matrix, Power BI should filter it by Nom Codes as well.

View solution in original post

2 REPLIES 2
Thim
Resolver V
Resolver V

Try make a make a new meassure with 2 count formula looking something like this
Total Count = Count(CodeCADASTRE) + Count(N° SISP)

 

When you put this in with your matrix, Power BI should filter it by Nom Codes as well.

shame on me, of course it works. I thought it wouldn't take in account the "group by" NOM_CODE. 

 

Thanks a lot! 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors