Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello
I have the following data in a table visualization in Power BI and i simply want to count the number of names and show the total at the bottom of the table in a row with the text: Total = 11. Under Format, i have the Total option enabled but it does not show anything new in the visual. Any help is much appreciated!
Solved! Go to Solution.
Here is a "hack". Create a measure along the lines of:
With Totals =
IF(ISINSCOPE('Table'[Name]), MAX('Table'[Name]), "Total " & COUNTROWS('Table'))
Create the table visual with the name field and the measure and turn off the word wrap options in the formatting pane:
Now hide the name column by dragging the column's border left:
Proud to be a Super User!
Paul on Linkedin.
Here is a "hack". Create a measure along the lines of:
With Totals =
IF(ISINSCOPE('Table'[Name]), MAX('Table'[Name]), "Total " & COUNTROWS('Table'))
Create the table visual with the name field and the measure and turn off the word wrap options in the formatting pane:
Now hide the name column by dragging the column's border left:
Proud to be a Super User!
Paul on Linkedin.
Thank you PaulDBrown, I was looking for a similar solution and your post helped me.
@Anonymous unfortunately that is not possible with the measure without using another column on the rows or values. The only way I can think of creating a new table that has all the student names and a new row with a total number of students and then you use it in your visual and that will work.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Could you please explain what's the difference between your code and this code which gives the same results:
Name count = COUNTROWS('Student name list')
@Anonymous you need to create a measure to make it work. I guess at this point you have put a name column on the rows and it is not getting aggregated. To make it work, add a following measure and use it on the values:
New Measure =
IF ( HASONEFILTER ( YourTable[Student Name] ),
MAX ( YourTable[Student Name] ),
Format ( COUNTROWS ( YourTable ), "General Number" )
)
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Hi @parry2k Thanks for your reply! I did as you suggested but it does not look right since i only want one column of names and the total number of names underneath. Is that possible?
If i remove "Student Name" field from the values, i get only the total and no list of names.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 50 | |
| 49 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 91 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |