Ravindra BagaleCourses & study guides मराठी Track your progress

10. Power Query in Excel

Excel

10.2 Cleaning Steps in Power Query

A clean report is more than a neat-looking table. Its records still mean what the source intended, its numbers have a defined interpretation, and its unresolved problems remain visible. Power Query lets you turn these decisions into repeatable steps instead of repairing the same export by hand every week.

This lesson covers structure, text, missing values, numeric conversion, repeated keys and the order of transformations. We use two separate fictional teaching datasets: the original BlueOtter Retail practice records in dollars, and a small rupee-denominated review exercise. Do not combine their monetary totals. The step-by-step menus assume desktop Excel for Windows; other supported Excel environments can expose different commands.

Clean according to meaning: preserve the raw input, state the rule, apply one understandable change, and check its effect. A missing amount is not zero, and a repeated order code is not automatically an identical transaction.

1. Decide what a correction is supposed to accomplish

A consistent label helps a report answer its question

Imagine preparing a city report from a fictional retailer's export. Mumbai appears as MUMBAI and Mumbai. Some customer names have spaces at their edges. A query can standardise the controlled city labels and trim the names so that the report is easier to group and read. Those operations have specific purposes; they are not instructions to rewrite every value into the style you prefer.

A customer's name may have intentional capitalisation. A product code might distinguish uppercase from lowercase. A blank city might mean the customer did not supply it. If you change those values without understanding their meaning, you can make the table look consistent while introducing false information. A useful cleaning rule explains both the intended change and the values to which it applies.

  • Problem: identify the actual inconsistency.
  • Rule: state the permitted interpretation or correction.
  • Scope: name the column and records affected.
  • Evidence: keep the original value available.
  • Control: predict which counts or totals should stay unchanged.
  • Exception: decide which unresolved values need review.

Separate representation from business truth

Removing a surrounding space from a known city label changes its representation. Deciding that a transaction belongs to a different city changes a business fact. Parsing a supplied amount into a number is different from deciding that the amount is correct. These distinctions help you explain why a successful transformation does not automatically certify the source.

For example, a numeric amount of 1,440 can be parsed perfectly while still belonging to the wrong order. A date can be valid but fall outside the requested period. A duplicate-looking row can represent a second legitimate order line. Cleaning should make those issues easier to investigate. It should not make all of them disappear behind a tidy total.

Preserve raw input while developing the rules

Keep the supplied workbook or file unchanged while building the first query. For important fields, a duplicate column can retain the raw value beside a proposed cleaned value. Alternatively, keep a clearly named raw query feeding a prepared query. Choose a design that lets a reviewer trace an output back to its original record without guessing what the original spelling or amount was.

This does not mean every production report needs dozens of duplicate worksheet columns. It means your development and review process should retain enough evidence to explain the changes. Once the rules are approved, the presentation can be concise while the query structure and source remain inspectable.

2. Repair report structure before interpreting values

Remove only known non-record rows

A report-style export may begin with a title and a period note before its actual headings. If the contract says the first two rows are those notes, Remove Top Rows can remove two rows, and Use First Row as Headers can then promote the real headings. The order matters: promoting the title first creates the wrong field names.

Do not apply the same fixed removal count to every file without checking its format. A future export might omit the period note, leaving a valid record in the position you intended to discard. For recurring files, verify the expected heading labels after the structural steps. If the schema changes, investigate before presenting a partial or mislabelled result.

A fully blank row differs from one incomplete record

A row containing no relevant values can be a layout separator rather than a transaction. A row with an OrderID and a missing amount is an incomplete transaction record, not a blank row. Removing it with a broad filter can conceal that the source is incomplete. Define which fields establish record identity and which missing fields should produce a review flag.

Also distinguish a total row from a data row. A supplied subtotal often repeats amounts already present in the detail. If it survives into a sum, the result can be inflated. Use an explicit report-layout rule to exclude such rows and record their purpose; do not assume that the last row of every file is always a subtotal.

Promote headings once and check names

A named Excel Table may already supply headings to the query. A raw worksheet or text import may need promotion. Look at the current preview before selecting the command. If the headings are already OrderID, City and Amount, promoting again would turn the first transaction into column names and remove it from the record set.

After structural preparation, count the data records and compare the column names with the expected schema. This gives a stable starting point for text and number transformations. If the starting point is wrong, later steps can be perfectly written while operating on the wrong fields.

3. Give each text operation a clear job

Trim edges; Clean control characters

Text.Trim removes leading and trailing whitespace by default. It does not mean “remove every space inside a phrase”. In our first practice name, two spaces before meera and one after kulkarni are unwanted edges. The space between the two words remains meaningful. Preserving it keeps the name readable and avoids joining separate words accidentally.

Text.Clean removes control characters. A line break embedded between two words can disappear, joining those words if no separating space remains. Therefore inspect what the source uses that character for. If a line break separates meaningful parts of a description, replacing it with a space may be more appropriate than simply deleting it. Clean is a defined transformation, not a universal repair for all unusual Unicode characters.

Text.Trim("  meera kulkarni ")
Text.Clean("AB#(lf)CD")

The first expression returns meera kulkarni. The second returns ABCD because the line feed is removed. These are Power Query M examples, not formulas to paste into an ordinary worksheet cell. You can use the corresponding Transform → Format commands when working through the graphical editor.

Case standardisation depends on the field

Power Query text comparisons can be case-sensitive, including duplicate operations. If a controlled city field treats MUMBAI, Mumbai and mumbai as the same label, standardising case before grouping can prevent separate groups. For our limited fixture, capitalising each word gives the intended readable city names. A broader source may require a maintained mapping instead.

Do not automatically change every customer or brand name to proper case. Names such as iPhone contain intentional case, and personal names can follow conventions that a mechanical transformation does not know. A useful compromise is to preserve the original display name and create a separate normalised comparison key where the business rules explicitly allow it.

Replace agreed aliases without replacing unrelated text

A teaching mapping might define Poona as Pune and Bombay as Mumbai for a particular source. Apply that mapping only if those are the approved equivalents for the report. A replacement inside every text field could alter a street name, a business name or a comment that should remain unchanged. Prefer a whole-value match in the controlled City field for this kind of correction.

For several aliases, a maintained mapping table can be easier to audit than a long sequence of unexplained replacements. The later Merge lesson shows how to attach a standard value through a key. Check the mapping's key uniqueness: duplicate mapping entries can multiply records when expanded, turning a cleaning step into a total-changing error.

  • Trim the intended text field's edges.
  • Inspect control characters before removing them.
  • Standardise case only under the field's comparison rule.
  • Keep intentional spelling and punctuation in names.
  • Apply approved aliases to the appropriate complete values.
  • Compare record count and numeric totals before and after text-only changes.
Cleaning decisions depend on meaning: surrounding spaces may be trimmed, a missing city remains unknown, and two records sharing an ID require review before removal.
Three untidy-looking values can require three different actions. A single blanket replacement cannot express all their meanings.

4. Handle missing values and repeated keys explicitly

Null, empty text and whitespace are different states

Null represents the absence of a value in Power Query. Empty text is a text value with no characters. A string containing spaces has characters even if it looks empty on screen. A filter for null alone may not find the other two cases. For a field where all three mean missing, trim the text and deliberately normalise the appropriate empty result to null.

That rule is field-specific. An empty comment can be acceptable while an empty OrderID prevents identifying a record. A missing amount should not become a numeric zero merely because a chart wants a number. Keep a status that tells the reader whether the value is missing, invalid or valid, and decide which outputs can include it.

Fill Down requires an inherited-label layout

In a grouped report, a city may be printed only on the first line of each block. If the source specification says subsequent null city cells inherit that label until the next city, Fill Down can reconstruct the repeated values. Its operation follows row order, so preserving the intended ordering is part of the rule.

Imagine Pune 500, null 300, null 200, Mumbai 400 and null 250, where the city label intentionally applies to its following block. Filling City down gives Pune a total 1,000 and Mumbai 650. The overall 1,650 stays unchanged. This is valid because the layout declares inheritance. If those blank cities instead mean unknown customer locations, the same operation invents facts.

Fill Down works on nulls. Empty text may first need an explicit conversion to null when the field's meaning permits it. Do not fill through unrelated sections or across a sorted order that has lost the original grouping. Check a boundary where the city changes and a missing first value, because there may be no preceding label to inherit.

Repeated identifiers are an investigation signal

Remove Duplicates compares the columns you select. Comparing all fields asks whether entire selected records repeat. Comparing OrderID alone asks whether that identifier repeats, even if other fields disagree. Those are different questions. Record grain determines whether an identifier is expected to be unique; an order with several product lines may legitimately appear several times.

Do not rely on an assumption that Power Query will always preserve the first record after duplicate removal. Microsoft's duplicate guidance warns against that guarantee. If a business rule requires a specific surviving version, design an explicit selection using an authoritative version or timestamp and an unambiguous tie rule.

5. Lab: clean the original practice labels without losing records

Rebuild the BlueOtter Retail source

Create a sheet named RawCleaning, enter the following six headings and ten records in A1:F11, and make an Excel Table named tblCleaningInput. Amount ($) is a supplied dollar-denominated line amount for this fictional exercise. All records use that same unit regardless of city. Do not change the symbol to rupees or multiply the amount by quantity.

Original BlueOtter Retail Task Hub fixture
Order IDCustomerCityChannelQtyAmount ($)
ORD-501 meera kulkarni MUMBAIApp1340
ORD-502Rohan IyerdubaiWebsite82000
ORD-503Kabir JoshiPuneStore41000
ORD-504 emma schmidt MumbaiApp71750
ORD-505Liam O'BrienMUMBAIStore31440
ORD-506Mateo GarciasingaporeWebsite6720
ORD-507 zoya shaikh PuneStore73360
ORD-508Diego LopezLondonStore52400
ORD-509Chloe MartinBERLINWebsite94320
ORD-502Rohan IyerberlinApp1120

Meera, Emma and Zoya each have two leading spaces and one trailing space in their original lowercase names. Enter those edges deliberately if copying the table trims them. Keep the original row order and both ORD-502 records. Before cleaning, write the controls: ten records,51 units and total 17,450. Text-only standardisation should preserve all three.

  1. Select a cell in tblCleaningInput and use Data → From Table/Range.
  2. Name the query PreparedCleaning. Inspect the existing type step and use Text for the first four fields, Whole Number for Qty and a suitable numeric type for Amount ($).
  3. Duplicate Customer and rename the duplicate CustomerClean so the raw field remains available.
  4. Select CustomerClean and apply Transform → Format → Trim. Keep the original letter case in this lab.
  5. Duplicate City as CityStandard. Trim it, then apply Capitalize Each Word for these declared city labels.
  6. Inspect Meera's raw and cleaned names, Mumbai variants and the Berlin variants.
  7. Retain all ten records, including the conflicting ORD-502 entries. Add a review note outside the output rather than silently removing one.
  8. Load the prepared result to a new sheet and compare ten records,51 units and 17,450 with the baseline.
  9. Check the two new columns while confirming that the original Customer and City fields remain available.
  10. Save the workbook with the cleaning rule and unresolved-key note.

Explain every original practice answer

The original twelve exercises can now be interpreted accurately. These checks use the ten-row baseline, not an imagined deduplicated dataset. A worksheet formula can independently verify an imported value; it does not prove that every possible Power Query transformation has identical behaviour on all text.

  1. There are 10 nonempty Order ID records.
  2. Trimming the first name gives meera kulkarni, preserving its lowercase letters.
  3. The first standard city is Mumbai.
  4. Quantities total 51.
  5. The first name loses 3 surrounding spaces.
  6. ORD-502 appears 2 times.
  7. Mumbai has 3 records when the defined case variants are treated equivalently.
  8. App amount is 340+1,750+120=2,210.
  9. The mean line amount is 17,450÷10=1,745.
  10. A hypothetical one-record-per-ID count is 9, but the conflicting records require a selection rule before removal.
  11. The largest Store amount is 3,360.
  12. The first line's amount per unit is 340÷1=340.

The two ORD-502 rows have different city, channel, quantity and amount values. Removing the final Berlin/App record would leave 50 units and 17,330. Removing the earlier Dubai/Website record would leave 43 units and 15,450. Both alternatives contain nine rows, so a row-count check cannot tell you which business interpretation is correct.

Reveal the full first-lab reconciliation

Text cleaning preserves ten records,51 units and 17,450. App totals 2,210, Store 8,200 and Website 7,040, which sum to 17,450. The raw Customer and City fields remain alongside CustomerClean and CityStandard. Mumbai's three rows total 3,530. Both differing ORD-502 records remain visible for review; no business correction has been inferred from their shared identifier.

6. Lab: parse amounts and keep exceptions visible

Use a separate rupee fixture with a declared format

Create another sheet named ReviewInput and an Excel Table named tblAmountReview containing the seven records below. Format AmountText as Text before entering it. The source rule permits an optional leading rupee symbol, surrounding spaces, comma thousands separators and a decimal point. The amounts represent rupees in this exercise. Other currencies and unfamiliar conventions require review rather than automatic combination.

Separate fictional amount-review exercise
RecordIDCityAmountText
T101Pune₹500
T102pune₹300
T103Mumbai₹200
T104leave empty₹400
T105Mumbai₹250
T105Mumbai₹250
T106DelhiInvalid

Leave T104's City cell empty; do not type the words leave empty into the source. In this dataset it means the location is unknown. There is no inherited-city report layout, so Fill Down is not permitted. The two T105 records are identical in these supplied fields, but the exercise deliberately leaves their event identity unresolved. Keep both until an authorised rule determines whether one is a duplicate.

Keep the raw amount beside a parsed value and status

A visible currency symbol does not itself make text numeric. Instead of assuming that every locale converter accepts every symbol, remove only the agreed leading rupee prefix, then parse the remaining number text with the declared separator convention. Do not globally remove all punctuation. For example, stripping a decimal comma from a source that uses it as a decimal separator would change the magnitude.

The following Custom Column expression returns a small record containing an amount status and a numeric value. It is longer than a one-line replacement because it preserves the difference between missing input, invalid input and a valid number. You can read it in stages: inspect the raw text, remove the approved prefix, attempt conversion, then classify the outcome.

let
    raw = [AmountText],
    trimmed = if raw = null then null else Text.Trim(raw),
    numberText = if trimmed = null then null
        else if Text.StartsWith(trimmed, "₹")
        then Text.Trim(Text.Range(trimmed, 1)) else trimmed,
    parsed = try Number.FromText(numberText, "en-US")
in
    if trimmed = null or trimmed = "" then
        [AmountStatus = "Missing", AmountValue = null]
    else if parsed[HasError] then
        [AmountStatus = "Invalid", AmountValue = null]
    else if parsed[Value] < 0 then
        [AmountStatus = "Invalid", AmountValue = null]
    else
        [AmountStatus = "Valid", AmountValue = parsed[Value]]

The numeric culture here specifies comma grouping and decimal-point interpretation after the rupee prefix is handled. It does not convert the currency to US dollars. The exercise's rule rejects negative values; a returns dataset could need a different rule. Do not copy this parser into a different business context without revisiting its accepted inputs.

  1. Import tblAmountReview through From Table/Range and name the query ReviewedAmounts.
  2. Keep RecordID, City and AmountText as Text. Inspect T104's absent City as a missing value.
  3. Create CityStandard from City using the approved case treatment for Pune, Mumbai and Delhi; keep the raw field.
  4. Add a Custom Column named ParseResult and paste the expression above.
  5. Use the expansion control on ParseResult to expand AmountStatus and AmountValue. Keep the raw AmountText field.
  6. Set AmountStatus to Text and AmountValue to Fixed Decimal Number for these teaching amounts.
  7. Inspect T106: it should have status Invalid and a null numeric result, not numeric zero.
  8. Load the result and count seven records, six Valid statuses, one Invalid status and no Missing amount statuses.
  9. Sum only the Valid amounts and confirm 1,900. Report the invalid count and repeated-ID review beside that subtotal.
  10. Confirm T104 still has an unknown city and that both T105 records remain.

A valid numeric subtotal is not a fully resolved business total

The six parsed values are 500,300,200,400,250 and 250. Their subtotal is 1,900. That amount includes both T105 records and excludes T106's unresolved amount. Label it as the known numeric subtotal of the retained source rows. Calling it “final confirmed sales” would claim more than the exercise has established.

Among the valid records, Pune contributes 800, Mumbai 700 and the unknown-city bucket 400. Those categories reconcile to 1,900. Delhi's row has an invalid amount, so it should not be presented as proven zero activity. A report can show a known subtotal together with incomplete coverage, but the distinction must be visible to its reader.

Reveal the amount-review answer key

Seven records remain. Six numeric amounts total 1,900; one amount is Invalid and none are Missing. One City is missing. T105 appears twice. Pune's known subtotal is 800, Mumbai's 700 and unknown City's 400. If T106 is authoritatively corrected to₹150, all seven amounts become valid and the retained-row total becomes 2,050; the T105 identity review still remains.

Test zero, missing and repaired inputs separately

In separate practice copies or after resetting the baseline each time, replace T106's amount with₹0, then with an empty cell, then with₹150. Zero should be Valid and contribute zero, with seven valid amounts. Empty input should be Missing, leaving six valid amounts and the same 1,900 known subtotal. The approved 150 correction should produce seven valid amounts and 2,050.

These cases show why total alone is insufficient. The baseline with one invalid amount, the case with one missing amount and the case with a genuine zero can all show the numeric subtotal 1,900. Their completeness differs. Keep the status counts with the number so a reader can distinguish incomplete information from a fully parsed zero.

Seven retained source records contain six valid amounts totalling1900 and one invalid amount. A missing city and repeated T105 records remain separate review conditions.
The number and its coverage belong together. A known subtotal can be useful while unresolved records remain explicitly identified.

Follow an invalid amount through the review

  1. Keep the original text

    T106 contains Invalid in AmountText. Preserve that source value so the issue can be explained.

  2. Attempt the defined conversion

    The parser cannot interpret Invalid as a number under the declared format. The conversion attempt reports an error.

  3. Expose the status

    AmountStatus becomes Invalid and AmountValue stays null. No zero is invented and the record remains available.

  4. Report coverage with the subtotal

    Six valid amounts total 1,900. One invalid amount remains unresolved, alongside the repeated-key and missing-city reviews.

7. Extend the preparation without hiding assumptions

Split and merge fields according to their structure

A controlled code such as Pune|East can be split at the vertical bar into City and Zone. That works because the delimiter and number of parts are defined. A personal name separated by spaces does not necessarily have exactly two parts, so splitting every name into first and last at the first space can misrepresent people. Inspect the source format before choosing a split rule.

Merging columns is also a structural decision. Joining City and Zone with a visible separator can create a readable label. It is not automatically a unique key: two different records can share that label, and source values containing the same separator can create ambiguity. Preserve the original fields when the combined display is only for readability.

Choose whether to transform existing columns or add a new derived column. Transform commands may replace the original field, while an added result can preserve it for comparison. A small practice workbook benefits from seeing raw parts and the combined result together. Check a missing part, a value containing the delimiter and an unexpected extra part before using the rule on a larger export.

Conditional columns express a declared decision

A conditional column can label valid numeric amounts as Large when they meet a teaching threshold and Standard otherwise. Decide the boundary first. If Large means at least 1,000, then 999.99 is Standard while 1,000 is Large. Missing or invalid amounts need a separate review state before the numeric comparison.

The label is a business classification, not an inherent property of money. Another exercise might use a different threshold or include multiple criteria. Write the rule beside the result and test values below, at and above the boundary. Do not treat an automatic default “else” branch as a suitable home for every invalid record.

Column From Examples proposes a transformation

If codes follow the pattern Rice-001 and Milk-002, entering Rice and Milk as examples can help Power Query propose an extraction. Inspect the suggested expression and additional rows before accepting it. A code such as Sugar-Free-003 reveals whether the intended rule extracts before the first hyphen or removes a final three-digit suffix. Two easy examples do not establish the general rule.

After the step is created, test a new source record and refresh. The saved transformation applies its rule; it is not a person reconsidering your intention for each future record. Microsoft notes that the interactive example experience works on a limited preview, so include deliberate edge cases rather than assuming a large uninspected source is fully represented.

8. Debug the sequence instead of rebuilding blindly

Find the first step where meaning changes incorrectly

Applied Steps lets you select an earlier stage and inspect its result. If Mumbai became several groups, inspect trimming and case treatment before the grouping step. If an amount becomes an error, inspect the raw string and the conversion rule. If the row count drops, identify the filter, deduplication or removal step responsible.

Some steps expose a settings control; others may need editing through the formula bar or Advanced Editor. Not every step has a gear icon. Removing a step can break later steps that refer to its output or created fields. Work in a practice copy, make one change, and recheck the final result before deciding the repair is complete.

Order changes the result

Trim a comparison key before checking duplicates if the approved key rule ignores surrounding spaces. Parse a date before applying a chronological filter. Repair known report headings before assigning types. Fill inherited labels while the intended block order is intact. Each sequence follows the dependency between the decisions.

Do not assume that pasting a different file into the same folder refreshes a query connected to one specific filename. The source definition decides which input is read. A folder query needs an explicit file-selection and combination design, covered in the next lesson. Test the actual source update through the loaded destination rather than judging only the editor preview.

  • Rename important steps so their purpose is readable.
  • Keep a note of intentional removals and their counts.
  • Check numbers before and after text-only changes.
  • Keep invalid and missing states separate from zero.
  • Retest boundaries after changing conditional rules.
  • Verify both a known old record and a newly added record.
  • Record unresolved business decisions instead of guessing.
  • Inspect the final loaded result after refresh completes.

Read the parser as a sequence of small decisions

The word let introduces named intermediate values in the amount parser. These names help you inspect the reasoning without repeating the same text operation several times. The final in expression chooses the returned result. This is not a loop through worksheet addresses; the Custom Column calculation receives the current record's AmountText value and applies the same defined decisions to it.

The try expression produces information about whether conversion succeeded. When HasError is true, the code takes the Invalid branch. It does not attempt to use the failed numeric result. When conversion succeeds, the subsequent branch checks the exercise's nonnegative rule. That separates a technically parseable negative number from a value accepted by this particular business definition.

The returned square-bracket expression is a record with two named fields. Expanding it creates AmountStatus and AmountValue as ordinary columns. If you leave the column unexpanded, you will see record objects rather than the final numeric field. That is an intermediate representation, not proof that conversion failed. Expand the intended fields, assign their types and inspect the resulting values before loading.

Keep the source AmountText because a null AmountValue can have more than one explanation. It might represent a missing input or a failed conversion. The status distinguishes them, and the raw text lets somebody investigate the cause. If you discarded both, a later reviewer could not tell whether to request a missing amount, correct a source typo or accept a known zero.

Test the rule on a newly added record

Return to the first BlueOtter fixture for a separate growth test. Add ORD-510 with customer text containing two leading spaces before ana shah and one trailing space, City containing a surrounding-space variant of mumbai, Channel App, Qty 2 and Amount ($)500. Confirm that the record belongs to tblCleaningInput before refreshing PreparedCleaning.

The prepared output should now have eleven records,53 units and 17,950. CustomerClean should be ana shah and CityStandard Mumbai. App amount becomes 2,710, while Store and Website remain 8,200 and 7,040. Mumbai's known amount becomes 4,030. The two conflicting ORD-502 records remain unresolved; adding a good record does not resolve their identity.

This change is useful because it tests both growth and the saved text rules. Typing a cleaned name directly into the result would not prove either behaviour. After completing the experiment, remove only the deliberately added practice record from your own source copy and refresh to restore the original ten-row controls. Record which state your screenshots or answer notes describe.

9. Practise explanations for quizzes and interviews

Does Trim remove every space from a name?

No. The default Power Query operation trims the edges. In the first fixture, meera kulkarni retains the space between its words. Internal repeated spaces require a separate defined rule. Do not equate every text-cleaning function across Excel and Power Query for every possible input.

Can Fill Down repair an unknown customer city?

Only if the source layout explicitly says the missing cell inherits the preceding label. T104 in the amount-review lab is genuinely unknown, so filling Mumbai into it would invent a fact. The separate grouped-report example permits inheritance and therefore supports Fill Down.

Why can two nine-row outputs have different totals?

Removing one of the conflicting ORD-502 entries leaves a different amount depending on which record is excluded. The alternatives 15,450 and 17,330 both have nine rows. A count cannot establish the correct surviving record; the business rule must resolve the conflict.

What does the 1,900 subtotal prove?

It adds the six valid numeric values in the retained rupee fixture. It includes both T105 rows and excludes T106's unresolved amount. It does not prove that duplicate identity is resolved or that the source contains complete final sales.

Is a real zero the same as an invalid amount replaced by zero?

No. A valid zero is a known numeric result under the exercise's rule. An invalid string is unresolved information. Their sums can look identical, so status counts and coverage must accompany the number. The parser keeps the invalid numeric field null and identifies its status.

When is uppercasing an identifier appropriate?

When the identifier's defined comparison rule treats letter case as irrelevant and the transformation is approved. If case distinguishes records, uppercasing changes identity. Preserve the raw value and avoid assuming that a familiar-looking code is case-insensitive.

Why inspect a Column From Examples expression?

The inferred rule can fit the examples while failing a different structure. Sugar-Free-003 tests whether you intended a first-hyphen split or removal of the final code segment. Inspect the saved transformation and test new rows after refresh.

Give a clear interview description of your cleaning process.

I define the source grain and accepted formats, preserve raw fields, apply scoped transformations, and verify counts and totals after each meaningful change. I separate missing, invalid and valid values and investigate repeated keys before removal. I test the saved process with a controlled refresh and document unresolved exceptions.

Structure

Separate titles, headings and totals from actual records.

Text

Trim, Clean and case conversion solve different problems.

Missing

Null, empty text and unknown facts need explicit treatment.

Numbers

Parse a declared format and keep invalid values identifiable.

Identity

Choose duplicate rules from record meaning and authoritative evidence.

Sequence

Inspect the first incorrect step and retest its downstream result.

Continue with the Excel Task Hub, then the folder-combination lesson. Keep these two currencies and fixtures separate when reporting your practice controls.

Microsoft references