Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Count rows of another table without relationship

Hello,

 

Please, I need to make a column where I can count how many rows there are in another column of the other table, but I need that when I apply the visual filter, the number changes.

 

For example:

 

I have two tables, Table and Table Count.... Then in the Table Count I made a column and wrote the expression "CALCULATE(COUNT('Table'[ID]))". After that I created a card and in the field put the column that I have just created, as the number of the rows in the Table is 2, the number that the card shows is 2. Perfect!

 

The problems is because when I use the visual filter in this card using the Table, not the Table Count and select just a line, the number does not change.

Could somebody help me please?


Best regards,

3 REPLIES 3
AlB
Community Champion
Community Champion

Hi @Anonymous 

You need a measure. Calc columns are static

Can you show a sample of the two tables and explain exactly what you need?  Count rows how, based on what?

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

 

 

Anonymous
Not applicable

Hi

 

 

 

 

 

 

 

 

 

 

 

@Anonymous , There needs to some filter that we need to common to make sure you get a different count.

As a new column in Table A, I tried adding a date relation

 

C152 Aircrafts With Problems = countx(filter(TableB, table2[status] = "Open" && isblank(tableB[Date Next Status]) && tableB[Date Next Status] >TableA[Date]),table2[Aircraft Type])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.