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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Rigoleto
Helper II
Helper II

Add commas to a text numeric value

I having problems to format some values that are being showing in a Matrix, just I did some trick in order to simulate the Totals and Averages, I have changed to values data types from int to text, my goal is show blanks in the matrix instance of zeros, well do I need to do is put commas to the values, just liek the screenshot shonws.

 

 

commas.png

1 ACCEPTED SOLUTION

Hi @Rigoleto

Thanks to ChrisMendoza, i can test with it successfully.

8.png

Column =
VAR right =
    RIGHT ( [Column1], 3 )
VAR left =
    SUBSTITUTE ( [Column1], right, "" )
RETURN
    COMBINEVALUES ( ",", left, right )

 

 

Best regards

maggie 

View solution in original post

7 REPLIES 7
iris-yip
Regular Visitor

Format([Column1], "#,##0")

great 👍

Thanks @iris-yip this is the right answer the other examples don't work for 100,000 and above.

ChrisMendoza
Resident Rockstar
Resident Rockstar

@Rigoleto,

 

You could try something like what I've show in https://community.powerbi.com/t5/Desktop/Spacing-between-values/m-p/437119#M201622.

 

Just change the " " (space) to ","






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



Hi @Rigoleto

Thanks to ChrisMendoza, i can test with it successfully.

8.png

Column =
VAR right =
    RIGHT ( [Column1], 3 )
VAR left =
    SUBSTITUTE ( [Column1], right, "" )
RETURN
    COMBINEVALUES ( ",", left, right )

 

 

Best regards

maggie 

BKirsch12
Resolver II
Resolver II

Select the data you want to format, then head to modeling, and choose format, or hit the comma in the formatting box.

 

 

Formatting.PNG

Hey, 

 

Remember the value is a Text value, just I did change from numeric to text, now Do I want to do is put some commas

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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