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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

PowerBi - unable to convert

Can somebody from PowerBi team expain me this? Why tool tries to convert, where conversion is not needed at all??

 

PowerBi_1.png

 

 

 

 

 

 

 

 

PowerBi_2.png

 

 

 

PowerBi_3.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hello parry2k.

If you are referring to Advanced Editor window as "M" code, where let / in commands are, I have updated that code with the conversion

PowerBi_1.png as it was Int64.type before.

 

I didn't know that updating column data type from the UI has no effect, will make a note for future. 

 

 

Thanks!  

View solution in original post

4 REPLIES 4
parry2k
Super User
Super User

@Anonymous seems like there is a step where this column is getting converted to number and then later you are changing it to text. Can you share "M" code, it will help to identify the issue.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Hello parry2k.

If you are referring to Advanced Editor window as "M" code, where let / in commands are, I have updated that code with the conversion

PowerBi_1.png as it was Int64.type before.

 

I didn't know that updating column data type from the UI has no effect, will make a note for future. 

 

 

Thanks!  

@Anonymous changing from the UI has impact but depends if you are adding a new step or you are changing on existing step, if you are changing type thru UI on existing step, it will update the M code if you  are at other step, it will add another step but keep previous data type there. You need to understand how power query step works and then it is easy. Hope it make sense.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k I still don't get why PowerBi Desktop (since we are talking about desktop version) offers only to insert the step, but not update the existing from the UI when user changes data type for a column?

 

Is user enforced to use Advanced Editor, where "M" code is sitting?

 

I mean, not everybody is familiar with coding capabilities of the tool 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.