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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors