Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Power Query text and number format

Hi, 

 

It maybe a simple solution but I am struggling to get my column in Power Query (PowerBI) to accept a number and text format. 

 

Could you please advise on how I can keep both number and text format in my column without an error? 

 

Thank you!

 

  • Anonymous's avatar
    Anonymous
    4 years ago

    You have to find a step where the function "Table.TransformColumnTypes" is used for that specific column "Proc. Type" for the first time. If in one of the previous steps the type was changed to number, trying to change data type to text later on will not "recover" the data. In the screenshot we cannot see what previous steps were applied so we can just guess why it does not work for you.

5 Replies

  • You will have to format the number as text in order to keep both in the same column.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you, I tried that initially but it still keeps the text as an error 

      • Anonymous's avatar
        Anonymous
        Not applicable

        You have to find a step where the function "Table.TransformColumnTypes" is used for that specific column "Proc. Type" for the first time. If in one of the previous steps the type was changed to number, trying to change data type to text later on will not "recover" the data. In the screenshot we cannot see what previous steps were applied so we can just guess why it does not work for you.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Thanks all! It did work