Forum Discussion

LukeChung's avatar
LukeChung
Frequent Visitor
4 years ago
Solved

For a Matrix, how do I apply Numeric Format with commas on a Count?

For a matrix, I have the Rows and Columns fields, with a Count of a field as the Values. I can't seem to apply a numeric format on the grid for the values in thousands to be displayed with commas. W...
  • KNP's avatar
    KNP
    4 years ago

    Because I don't know your data you'll need to change the below example as required.

    After you right click on your table and select 'New Measure'

     

    Enter your mesure...

     

     

    MyCount = COUNT(MyTable[MyColumn])

     

     

    Replace MyCount with whatever you want your measure to be called. Replace MyTable and MyColumn with your table and any column but ideally something that doesn't have blanks or nulls. So yes, as you mentioned, something like a primary key would be ideal.

     

    Once you've formatted as you want it and drop it in your visual, no further aggregation is specified. That is implicitly handled by whatever level your visual is grouping to.

     

     

    Power BI Desktop has two options when downloading...

    There are not a lot of differences, not sure why they both exist. Maybe because some companies disable the MS Store through group policies to prevent other downloads. 

    If you download the version from the store, you don't have to worry about updating. Some people prefer to choose when they update. Either is fine.