{
  "schema": "vedokrok.public-item.v1",
  "release_id": "VEDOKROK-SEL-5d86e1b23401e578",
  "url": "/knowledge/read-distinct-and-unique-in-power-query",
  "id": "MHC-D-RESEARCH-9727",
  "version": "0.1.0",
  "title": "Read distinct and unique in Power Query",
  "summary": "Two similar words answer different counting questions.",
  "kind": "principle",
  "body": "In Power Query, distinct counts different values. Unique counts values that occur exactly once. Both describe the profiled rows, so a once-seen value in the first 1,000 rows may repeat later. Check the needed scope before using either count to assess a candidate identifier.",
  "limits": [
    "These are Power Query’s labels; verify other tools’ definitions. A result without duplicates does not prove that excluded records were checked or that the key will remain stable."
  ],
  "topics": [
    "critical-thinking"
  ],
  "intents": [],
  "source_ids": [
    "ms-profile"
  ],
  "evidence": [
    {
      "claim": "Power Query data profiling uses the first 1,000 rows by default and offers entire-dataset profiling. In Column distribution, distinct counts different values; unique counts values occurring once in the profiled column.",
      "source_id": "ms-profile",
      "role": "supports",
      "note": "Claim limit: Tool-specific documented behavior, not a universal definition of unique or an empirical test of Power Query. Counts from a restricted query or partial profile do not establish source-wide coverage or a stable business identifier.\nSource reading history: selected_passages; 2026-10-11; Default profiling scope note, Column quality labels and Column distribution definitions. Official page was opened on 2026-10-10 and identified sections inspected. This verifies a narrow reference basis, not the effectiveness or completeness of independently drafted practice steps. On 2026-10-11 those sections were read again for cards 9726/9727. The content was readable despite the page’s generic authorization banner. No application or connector was executed.\nAgent release review: PostgreSQL 18 table expressions, NULL comparisons and aggregates, the UK Government Data Quality Framework and Microsoft Power Query profiling documentation were checked at the cited sections. The original examples and scope limits remain attached.",
      "locator": "Default profiling scope note and Column distribution definitions"
    }
  ],
  "use_when": [
    "Power Query’s Column distribution shows distinct and unique counts."
  ],
  "avoid_when": [
    "These are Power Query’s labels; verify other tools’ definitions. A result without duplicates does not prove that excluded records were checked or that the key will remain stable."
  ],
  "steps": [
    "Set the needed query and profiling scope, then inspect repeated values.",
    "Check the full identifier if it uses more than one field."
  ],
  "example": "In this example, codes A,A,B,C give three distinct values and two unique values: B and C. A subset containing only A,B,C would show three of each and hide the repeated A.",
  "check": "Explain both counts, state the profiling scope and list repeated candidate keys in the records you actually need.",
  "published_at": "2026-11-12T18:37:40Z",
  "review": {
    "kind": "agent",
    "label": "Agent editorial and scoped source review",
    "reviewed_at": "2026-11-12T18:37:40Z"
  },
  "knowledge_origin": {
    "release_id": "MHC-RPUB-20261112-20287590",
    "corpus_commit": "20287590ddd3999b7492df232822b6a0f7d114b1",
    "manifest_sha256": "2a987660d12de0ce2bde77a421424f7762af1ff77872ef41093fecc33db74a95",
    "projection_sha256": "2807da39bbe6a3dee2db32a76675ac5185f5a33e8b0a5cdd0c22a4731f3378a0",
    "published_at": "2026-11-12T18:37:40Z"
  },
  "editorial_overlay": null,
  "editorial": null,
  "notices": [],
  "sources": [
    {
      "id": "ms-profile",
      "title": "Using the data profiling tools - Power Query",
      "url": "https://learn.microsoft.com/en-us/power-query/data-profiling-tools"
    }
  ],
  "relations": [
    {
      "from": "MHC-D-RESEARCH-9727",
      "to": "MHC-D-RESEARCH-9732",
      "type": "useful_with",
      "url": "/knowledge/replay-examples-before-changing-a-data-rule"
    }
  ],
  "collections": [
    {
      "id": "RC-MHC-UNION-DATA-JOINS-QUALITY-DIAGNOSTICS-2026",
      "title": "Diagnose data joins and quality before trusting a report",
      "url": "/collections/diagnose-data-joins-and-quality-before-trusting-a-report"
    }
  ],
  "topic_hubs": [
    {
      "id": "critical-thinking",
      "title": "Critical thinking and evidence",
      "url": "/topics/critical-thinking"
    }
  ],
  "solution_packs": []
}
