dzam
dzam

Reputation: 1

Power BI: Count the number of times a value appears in another table

I have 2 tables, one of which includes a column of id numbers. The other table has a column with multiple occurrences of each id-number. I would like to add a column to the first table telling me how many times each id appears in the second table.

Power Bi is new to me so I have gotten nowhere so far.

Upvotes: 0

Views: 5115

Answers (1)

msta42a
msta42a

Reputation: 3741

If you have relationship between these two table on this ID then you can use simple measure:

CountOF = CALCULATE(countrows(detail))

enter image description here enter image description here

Upvotes: 1

Related Questions