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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
bernate
Helper III
Helper III

Counting Rows in a Table Visual

Hello, I have the visual below. Each column is marked by which table it comes from. Column A is "Location," Column B is "Region," and columns C are "Item Number", "Count of % Category," and "% Category."

bernate_0-1727910341232.png

 

As you can see, the total is coming to 8 but I want it to be 13 as I have 13 values in column A that are not blank. 

 

Here are how the tables are connected. Table C has unique item numbers and is connected to tables B and C on the "Item Number" column. Tables A and B are connected on the "Location" column.

bernate_1-1727910453652.png

 

 

1 ACCEPTED SOLUTION
bernate
Helper III
Helper III

Hi everyone, I solved this issue by doing a simple COUNTX([Table A], 'Location'). This measure gave me a column with the correct total of 13. I don't think I explained what I wanted clearly enough but I'm glad to have found a solution that worked for me!

View solution in original post

3 REPLIES 3
aleksvp
Helper II
Helper II

There is a solution for that using Python Visual. It is a solution that fits even if you use field parameters in your table.
https://www.simpledev.tech/post/how-to-display-the-number-of-rows-in-a-power-bi-table-visual

 

bernate
Helper III
Helper III

Hi everyone, I solved this issue by doing a simple COUNTX([Table A], 'Location'). This measure gave me a column with the correct total of 13. I don't think I explained what I wanted clearly enough but I'm glad to have found a solution that worked for me!

PhilipTreacy
Super User
Super User

@bernate 

 

Please provide anonymised data that we can use rather than have to recreate everything from scratch.

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


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.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.