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
kekepania0529
Helper I
Helper I

Fixed Decimal Number converted to Text issue

I converted a fixed decimal number column to text. Once converted, if the digits after the decimal were zeros, or the last digit was zero, they are being dropped from the text. How can keep the zeros after the decimal?

 

kekepania0529_1-1639403330661.png kekepania0529_0-1639403255710.png

 

1 ACCEPTED SOLUTION

Try adding SUBSTITUTE function as well

 

so New Column = SUBSTITUTE( FIXED (TableName[1_GL_Account],2), ",", "")

View solution in original post

4 REPLIES 4
themistoklis
Community Champion
Community Champion

@kekepania0529 

 

Try the following formula:

 

 

New Column = FIXED (TableName[1_GL_Account],2)

 

FIXED function converts the number to text and keeps 2 decimal places

 

 

That worked for the decimals, but added commas to the string. Can the commas be removed also? It needs to be formatted like this: 3219001011.05

kekepania0529_0-1639404448001.png

 

Try adding SUBSTITUTE function as well

 

so New Column = SUBSTITUTE( FIXED (TableName[1_GL_Account],2), ",", "")

Pragati11
Super User
Super User

HI @kekepania0529 ,

 

Can you share your sample data here so that I can try it at my end?

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

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.

Top Solution Authors