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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
prothinker
Frequent Visitor

Copy Changed Type

Hi 

I have this pbix file https://drive.google.com/file/d/1cXmhlrhnx3FLgIkx03hypBDaETE-pPFd/view?usp=sharing

I have formatted the data in sheet 1 as whole number and the data in sheet 2 as text. When I click on transform data, both columns have "123" indicating that both are numbers. Why is this so?

Is there a way to go to Changed Type and copy the contents from the formula bar for one table and paste it to another table. This is useful when I have to change the data type for multiple columns and don't want to repeat the process.

 

Thanks.

 

5 REPLIES 5
v-stephen-msft
Community Support
Community Support

Hi @prothinker ,


Sorry to disturb you...


But did I answer your question ? Please mark my reply as solution. Thank you very much.

 

Best Regards,
Stephen Tao

v-stephen-msft
Community Support
Community Support

Hi @prothinker ,

 

For the idea you put forward, there is no such function that can be realized at present. You can submit your idea and vote on this website

 

There is a function to automatically detect the data type, hopefully it can reduce your unnecessary operations.

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hello @prothinker ,

 

Once you have changed the type of both the columns in editor, it will be remain same until you change it.

Please find my pbix file here pbix file 

 

And yes, you can change the type of more columns in one ago by specifying in formula bar with columnname and their type, like below with the braces.

 

= Table.TransformColumnTypes(#"Added Index",{{"Column 1", type text}, {"Column 2", type text}})

pranit828
Community Champion
Community Champion

HI @prothinker 

It is the same column from same table, which can be of only one type. either number or text.

What ever type you selected at the end will be reflected on both the sheets.





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

Hi

Thanks for your reply.

The column names are the same but they are from two different tables one in Sheet 1 and the other in Sheet 2.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.