In powerpivot i have two tables, and in both of them i have a column called ID, and ID is not unique on both tables.
I wanted to be able to count how many ID occurences i have in the other table. I've tried some different forms of CALCULATE with COUNTROWS and/or RELATEDTABLE, but nothing worked.
At the end of the day, if there is any other solution that shows me the list of IDs in both tables, that would work for me.
Some example on what's going on:
The tables are something like this:
Table1
ID Revenue
123US 100
321DE 200
Table2:
Account Campaign ID
XYZ USA 123US
ABC USA 123US
ASD GER 321DE
Sorry about the format. First, i tried to create a relationship between the tables, but as there are multiple values for [ID] in both tables, that wasn't possible. Then, i tried, for example, to add a column in Table1:
=CALCULATE(COUNTROWS('Table2'),'Table1'[ID]='Table2'[ID]))
but that didn't worked.
Edit: added the example and fixed formatting.