Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Change_Data_type

Hello, please help. 

 

I need to change the column type to letter and number simultaneously. Like on picture. How can I do this? 

 

 

 

Thank you for your help. 

  • Hi,

     

    An easy way to get the generic any type would be to change the data type of the column and replace the type in the code like below for an example

     

    = Table.TransformColumnTypes(#"Removed Columns",{{"Column1", Int64.Type}})

    To

    = Table.TransformColumnTypes(#"Removed Columns",{{"Column1", type any}})

     

     

2 Replies

  • Hi,

     

    An easy way to get the generic any type would be to change the data type of the column and replace the type in the code like below for an example

     

    = Table.TransformColumnTypes(#"Removed Columns",{{"Column1", Int64.Type}})

    To

    = Table.TransformColumnTypes(#"Removed Columns",{{"Column1", type any}})

     

     

  • v-piga-msft's avatar
    v-piga-msft
    Resident Rockstar

    Hi Anonymous ,

    Have you solved your problem?

    If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

    If you still need help, please feel free to ask.

    From the image, it seems that the data type of your column GTIN is number type.

    What is your desired output? 

    Best Regards,

    Cherry