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
janez599
Regular Visitor

Please Help: change data type from text to decimal number

Hi there, I am new to Excel and Power BI Desktop. I am using a text file with many columns to analyze our website traffic. One of the columns is click-through rate was imported as a text. I wanted that changed to a Fixed Decimal Number. However, every time I changed the data type from text to decimal number, every row of this column returned with "Error". When I click on the Error to see what they problem is, I receive this notice: DataFormat.Error: We couldn't convert to Number. Details: 7.81% What shall I do to convert the data type properly? Thanks a lot in advance. Jane
1 ACCEPTED SOLUTION
Daniil
Kudo Kingpin
Kudo Kingpin

There are several steps involved:

 

  1. Right-click the column, select Replace Values...
    ReplaceValues.png

  2. Replace the % symbol with nothing
    ReplacePercent.png

  3. Change Type to Fixed Decimal Number
    ChangeType.png

  4. Since this is a percentage, you need to divide by 100
    Divide.pngDivideBy100.png

  5. Finally, you get the desired result
    Final.png

View solution in original post

3 REPLIES 3
Daniil
Kudo Kingpin
Kudo Kingpin

There are several steps involved:

 

  1. Right-click the column, select Replace Values...
    ReplaceValues.png

  2. Replace the % symbol with nothing
    ReplacePercent.png

  3. Change Type to Fixed Decimal Number
    ChangeType.png

  4. Since this is a percentage, you need to divide by 100
    Divide.pngDivideBy100.png

  5. Finally, you get the desired result
    Final.png

i have data of sales  in the format let say

$1,00,12,223.00

$2,99,23,223.00 

 and so on of 700 rows and whenever i load the data and see it in query exditor then it showing its data type as ABC text 

i tried few times but could not able to change it 

please help!

@Daniil 

@janez599 

@PowerBI 

Thanks a lot Daniil for your detailed instruction!

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.