As of November 23, 2026, Copilot in Fabric Dataflow Gen2 can help prepare data and review M code; its new experience is in preview. It requires tenant enablement, supported paid capacity and regional settings. This is not a feature of every Power Query host. Here you use the existing local M subset, without cloud refresh or a measured folding plan.
Read the suggestion and decide whether to accept, repair or reject it. The decision is checked separately from the work. Selecting Repair does not change a formula, query or configuration for you: make the correction in the workspace. Use the task data to test the result, then check your answer. Show me how demonstrates the review decision and the tool actions together. The cases reuse original course fixtures so you can compare the proposed method with behavior you can inspect.
Text.Clean removes control characters; it does not trim surrounding spaces. Region needs Text.Trim.
Corrected operation:
Table.TransformColumns(Source, {{"Region", Text.Trim, type text}})