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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ayeoh
Employee
Employee

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
Employee
Employee

Hi @ayeoh ,

 

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
Employee
Employee

Hi @ayeoh ,

 

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/

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

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.