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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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