cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pipignu
Regular Visitor

sum words in multiple tables, how to?

Hello,

 

I need to sum words from different tables. Example:

 

TABLE1
Column Name

FCO

FCO

FCO

MSE

MSE

 

TABLE2

Column Name

MCA

MCA

FCO

MSE

 

I need to obtain this result: Total: 9. FCO=4, MSE=3, MCA=2.

 

Could you help me please?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Microsoft
Microsoft

Re: sum words in multiple tables, how to?

Hi @pipignu,

 

Based on my test, you can firstly use the formula below to create a new union table.

Table =
UNION (
    SELECTCOLUMNS ( Table1, "NewColumn", Table1[Column Name] ),
    SELECTCOLUMNS ( Table2, "NewColumn", Table2[Column Name] )
)

t1.PNG

 

Then you should be able to show the "NewColumn" and [Count of NewColumn] from the new created table on the Table visual to get your expected result. Smiley Happy

r1.PNG

 

Regards

View solution in original post

2 REPLIES 2
Microsoft
Microsoft

Re: sum words in multiple tables, how to?

Hi @pipignu,

 

Based on my test, you can firstly use the formula below to create a new union table.

Table =
UNION (
    SELECTCOLUMNS ( Table1, "NewColumn", Table1[Column Name] ),
    SELECTCOLUMNS ( Table2, "NewColumn", Table2[Column Name] )
)

t1.PNG

 

Then you should be able to show the "NewColumn" and [Count of NewColumn] from the new created table on the Table visual to get your expected result. Smiley Happy

r1.PNG

 

Regards

View solution in original post

Highlighted
Super User IV
Super User IV

Re: sum words in multiple tables, how to?

Hi,

 

Using Query Editor, you can append data from both tables into a single one and then write this measure.

 

=COUNTROWS(Data[Names])

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Announcing the New Spanish Forum

Announcing the New Spanish Forum

Do you need help in Spanish? Check out our new Spanish community section.

Top Solution Authors
Top Kudoed Authors