Forum Discussion

eliseglines's avatar
eliseglines
Frequent Visitor
7 months ago
Solved

Unable to change data type

I have a data field that is a saved as general or number in excel but is only test in power BI.

 

I've tried to change it in power BI but receive an error message every time that it is infant to automatically change it from text to number. 

 

Any advice is greatly appreciated!

  • danextian's avatar
    danextian
    7 months ago

    That is the table view. Go to Home tab then Transform Data. Look for the query, try changing the data type from there and then apply the changes.

     

5 Replies

  • Hi eliseglines,

    I am not sure I got your question, can you share pictures so we understand better your problem and/or send me the model via mail for the fix (once we have a clear idea of the issue)?

     

    If this helped, please consider giving kudos and mark as a solution

    @me in replies or I'll lose your thread

    Want to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page

    Consider voting this Power BI idea

    Francesco Bergamaschi

    MBA, M.Eng, M.Econ, Professor of BI

  • Hi eliseglines 

    There are ocassions when changing the data type in the designer doesn't work. Have you tried changing the data type in Power Query instead?

  • eliseglines's avatar
    eliseglines
    Frequent Visitor

    Thank you so much for your responses DAN and FBergamaschi . I've attached screenshots of where I have been met with my challenges. Red circle is the data field I'm trying to change from text to a number. In excel, I have saved this field as both a number or general (same as other fields that have numbers in Power BI). I am receiving the error message that I cannot do this.

    I have tried from table view - not sure that i the same as Power Query ?) and receive a similar error message. I'm fairly new to Power BI and trying to teach myself to finish a project for work. Thank you for any advice you may be able to give!

     

     

    • danextian's avatar
      danextian
      Super User

      That is the table view. Go to Home tab then Transform Data. Look for the query, try changing the data type from there and then apply the changes.