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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Count (Number of) Accounts Question

Hi, I have a PBI table visual like in the snip below.

The table automatically include the TOTAL sum of Cost$ and Revenue$.

How can I get a TOTAL of the number of accounts (i.e. the Count of Account Names)?

I don't see such a option for the table visual.

Thank you.

 

ayeoh_0-1694096198424.png

 

1 ACCEPTED SOLUTION
DataZoe
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

 

You can do this by making the Account Name a measure in a table visual:

 

Accounts = SELECTEDVALUE('Table'[Account Name],format(DISTINCTCOUNT('Table'[Account Name]),"#,##0") & " accounts")
 
DataZoe_0-1694117919261.png

 

You will need that Account ID to be always on the table and not summarizing for it to work.

 

Hope that helps!

Respectfully,
Zoe Douglas (DataZoe)



Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/

View solution in original post

2 REPLIES 2
DataZoe
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

 

You can do this by making the Account Name a measure in a table visual:

 

Accounts = SELECTEDVALUE('Table'[Account Name],format(DISTINCTCOUNT('Table'[Account Name]),"#,##0") & " accounts")
 
DataZoe_0-1694117919261.png

 

You will need that Account ID to be always on the table and not summarizing for it to work.

 

Hope that helps!

Respectfully,
Zoe Douglas (DataZoe)



Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/

Anonymous
Not applicable

IT WORKS!!!!!!!!!!!
Thanks a GAZILLION @DataZoe

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Users online (5,070)