Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all!
I just started working with powerBI and can't find the right solution for my question. I have the following tables/collumns
Table A
- A collumn with names
Table B (customers)
- Collumn with names where customers bought something (Related to collumn in table A)
So in table A i want to add a collumn with the count of the names in collumn 1, and how many times they are mentioned in table B. I tried some count and if statements but haven't figured out the right statement.
Solved! Go to Solution.
Hi @Anonymous
it depends on full your data model, but in common case it could be enogh to create the next measure (if you have relationships between tables) to table1
Measure = calculate(countrows('Table2'))
do not hesitate to give a kudo to useful posts and mark solutions as solution
Hello @Anonymous ,
You can create a calculate column on the Table A:
CALCULATE(
Or you can do the same with a measure. I think your column didn't work because you are not in the same context, for this you should use CALCULATE.
Thanks,
Guilherme
https://www.linkedin.com/in/antunesguilherme
Hello @Anonymous ,
You can create a calculate column on the Table A:
CALCULATE(
Or you can do the same with a measure. I think your column didn't work because you are not in the same context, for this you should use CALCULATE.
Thanks,
Guilherme
https://www.linkedin.com/in/antunesguilherme
Hi @Anonymous
it depends on full your data model, but in common case it could be enogh to create the next measure (if you have relationships between tables) to table1
Measure = calculate(countrows('Table2'))
do not hesitate to give a kudo to useful posts and mark solutions as solution
Can i add a last date filter here as well? So that i can count only the values from the last date available.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
7 | |
7 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |