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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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