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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

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.