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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Vishruti
Helper I
Helper I

Count Records Shown In Table Visual

I have 2 tables as data sources which have a many to many both directional relationship between them.

 

I have created table visual by pulling volumns frol both these tables. I also have certain dropdown filters on the page.

 

I want to get the count of number of rows for the records visible innthe table visual based on whether the dropdown filters applied. How can I achieve this?

2 REPLIES 2
Bibiano_Geraldo
Super User
Super User

Hi @Vishruti ,

Assume you have two tables:

Table1: Columns: [ID], [Name]
Table2: Columns: [ID], [Category]
Your table visual pulls [Name] from Table1 and [Category] from Table2, you can use this DAX to look like this:

VisibleRowsCount = COUNTROWS(SUMMARIZE(
    Table1,
    Table1[Name],
    RELATED(Table2[Category])
))
danextian
Super User
Super User

Hi @Vishruti 

 

You can create a virtual table mimicking the columns and measures in your table visual and then count the rows that virtual table has. Please see sample below.

danextian_0-1738070082774.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors