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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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