Create intermediate Works with: Any AI

Power BI Power Query Transformation Steps for a Messy Source

Table output

Plan clean-up steps that can be refreshed.

The Open buttons send the prompt text as currently shown below to that site only when you click. Fill in the placeholders first.

[VERIFY] is an editorial flag, not a blank to fill. Wherever the prompt shows [VERIFY], check that item against a reliable source before you use it.

Rate this prompt

Loading ratings…

Plan Power Query steps in Power BI for a messy source. Description and first rows of the source: [SOURCE_SAMPLE]. The shape I need: [TARGET_SHAPE]. Known issues: [ISSUES].

Use only the columns I described and ask for missing sample rows. Present the applied steps as a table in order with the action, the columns, the reason and the result on my sample rows: promoting headers, changing types, trimming and cleaning text, splitting columns, replacing errors, unpivoting columns into rows, merging queries, and removing duplicates. Give M formulas only where needed, marked [VERIFY]. Point out steps that break when the source changes, with tolerant alternatives such as selecting columns by name rather than position. Explain query folding in plain words and when a step may stop it, slowing refresh [VERIFY]. Name queries and steps clearly.

Checklist: row counts before and after, no errors, totals match, dates parse correctly, no text numbers. Keep the step list as short as the shape allows, merging steps that do one job. If next month's file may differ, say which two steps are most likely to fail first.

Fill in before use

Optional: type your details and the prompt above updates. Nothing is saved or sent.

Replace each bracketed placeholder with your own details, then paste into Any AI or another assistant.

Related prompts