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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
rtemplin
Regular Visitor

Comma Format count of values in Matrix

I am new to the forum and PBI.  My apologies if I breach any forum protocol.

 

So below is a matrix visualization i have on a report. The values are a count of a non-numeric field.  

 

I want the counts to be formatted as XX,XXX.   So, for example, 15009 would be 15,009.  

 

I do not know a way, let alone the best, to accomplish?

 

Capture.PNG

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

Best way would be to create a measure that does your count like:

 

MyCount = COUNT('Table'[Column])

Then, you can highlight this measure and go to the Modeling tab in the ribbon and click the "," button to format it.

 

image.png

 

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

13 REPLIES 13
vishal097
Helper II
Helper II

@Greg_Deckler  I have same requirement but little different 

I want to show values with comma separate but can't not use above mentioned option neither I can use Format function in dax as it gives text values and Power BI work weired with text.

 

Is there any other way we can get the same result 

Note I have matxix where I am showing all type of values like some KPI has % some has decimal, some has whole number and some has comma separate values. 

ara0530
Advocate I
Advocate I

I have the same issue but I do NOT see the Field Formatting menu.  If I create a measure, then the tooltip displays BOTH the default and my measure so the measure solution does not work.  Please adivse

Sherry_R
Advocate I
Advocate I

I realize this is an old post, but here's another option for anyone else who comes across this (this functionality was added after the original post).

 

You can select the visual and go to formatting options, then choose "Field Formatting" and select the field you want, then enter a value for decimal places and select apply to total.  There is not an option for "thousands separator" specifically, but populating the decimal places will result in the comma appearing.

 

2020-05-21_9-40-44.jpg

 

The formatting options for counts of text fields appear to have changed in more recent versions (Version: 2.124.1805.0 64-bit (December 2023)). For visualizations involving cards containing counts of text fields the functionality is similar to that showing in the parent comment, but slightly different. On the format visualization pane you can set the decimal places to zero and get commas in your displayed numbers under the callout value section.

Setting decimal places to zero results in commas appearing in count valuesSetting decimal places to zero results in commas appearing in count values

This worked for me. Thank you.

found it.
it's under "Specific Column" menu, in "values" sub-menu.

it worked with count but didn't worked with sum.
CMIIW

@rtemplin  This should be marked as a solution.  It accomplishes exactly what you're asking for and doesn't require the creation of extra measures.

thanks

Thanks for sharing, I had a simliar issue as OP and found this to be a quick and easy solution for me!

Very simple and great solution!!!!

 

Thanks for posting it!

 

Thanks! This looks like the cleanest solution!

Greg_Deckler
Super User
Super User

Best way would be to create a measure that does your count like:

 

MyCount = COUNT('Table'[Column])

Then, you can highlight this measure and go to the Modeling tab in the ribbon and click the "," button to format it.

 

image.png

 

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Thank you, Greg.  I greatly appreciate the help and forum guidance.  

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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