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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
stewartfiserv
Frequent Visitor

DataFlow function converted to text

If while editing a function I switch focus to another window my function is converted to text.

This:

Table.AddColumn(AddedIsWorkday, "Capacity", each [IsWorkDay] = true then 6 else 0)

Becomes this:

#!"Table.AddColumn(AddedIsWorkday, ""Capacity"", each [IsWorkDay] = true then 6 else 0)"

 

I understand this is because of an error in the formula but it is making the online editor almost unusable.

2 REPLIES 2
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @stewartfiserv ,

I could not understand what is your desired result. Based on my test, you could use advanced editor in data flow to convert to text:

1.PNG

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Its not about what I'm trying to do in the advanced editor. Its the fact that when I am editing in the function window and change focus outside of the function window (like alt-tab to another app to reference some information) it destroys the function I was working on.

 

This function that I am working on that is partially finished:

Table.AddColumn(AddedIsWorkday, "Capacity", each [IsWorkDay] = true then 6 else 0)

Becomes this:

#!"Table.AddColumn(AddedIsWorkday, ""Capacity"", each [IsWorkDay] = true then 6 else 0)"

I then have to remove the #!" and all the double quotes to continue editing the function.

 

To recreate this:  Select a step, edit it to a partial non-compilable state, alt tab to another application (like you do when trying to read up on an M function) then alt tab back to Power Query.  Your partially completed function is convereted to a mess.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors