Forum Discussion
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?
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.
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
13 Replies
- Sherry_RAdvocate 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.
- fie_slyNew Member
found it.
it's under "Specific Column" menu, in "values" sub-menu.it worked with count but didn't worked with sum.
CMIIW - HansTheEnforcerHelper I
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.
- nswitzerFrequent Visitor
Thanks! This looks like the cleanest solution!
- Greg_DecklerCommunity Champion
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.
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
- rtemplinRegular Visitor
Thank you, Greg. I greatly appreciate the help and forum guidance.
- ara0530Advocate 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
- vishal097Helper 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.