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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.