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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors