Reputation: 63
I have a full list of events in tableA in a pbi report, created tableB with a unique distinct list of events from tableA, how can I create a new column in tableB to return count the number of occurrences from tableA for each of the distinct events in tableB?
Upvotes: 0
Views: 51
Reputation: 4282
Column=CALCULATE ( COUNTX ( FILTER ( 'tblA', 'tblA'[Events] = MAX ( tblB[Events] ) ), 'tblA'[Events] ) )
Upvotes: 1