This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi,
I have two tables and they are connected.
In Table A, Client ID is unique but in Table B it is not.
Now I want to count the number of rows in Table A that have client ID existed in Table B. I'd like to use "countrows" function instead of "distinctcount" for another calculation purpose. Does any one know how to do it?
Thanks a lot in advance!!
Solved! Go to Solution.
Hi @Ying_P,
You can create a measure below:
Measure = COUNTROWS(FILTER('Table A',CONTAINS('Table B',[Client ID],'Table A'[Client ID])))
Best Regards,
Qiuyun Yu
Hi @Ying_P,
You can create a measure below:
Measure = COUNTROWS(FILTER('Table A',CONTAINS('Table B',[Client ID],'Table A'[Client ID])))
Best Regards,
Qiuyun Yu
So what should we do if we wanted to return only certain values from table B? For example, what should we do if we wanted to filter client IDs with Product Category ID = 'Kids Tops'?
So simple! Thank you. I added a + 0 at the end to avoid blank when there is no match.
Thank you very much,. It works perfectly!
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 34 | |
| 26 | |
| 25 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 65 | |
| 35 | |
| 32 | |
| 25 | |
| 23 |