Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
70 | |
68 | |
43 | |
34 | |
26 |
User | Count |
---|---|
86 | |
49 | |
45 | |
38 | |
37 |