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
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
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.