Environments in Power Query. What is k?
✓ Published0🌍 Public
HHugoberry
Last edited Oct 18, 2017
Created on Oct 18, 2017
Three Power Query expressions (Q1, Q2, Q3) demonstrate how lexical scoping and the `@` operator interact with the `Value.Metadata` function. The examples highlight how `a[z]` resolves differently depending on whether `z` refers to a local `let` binding or a captured enclosing `x`, and how metadata attached to `a` via `meta [x=x]` can be retrieved explicitly. The code uses Power Query’s record literals, the `@` scoping operator, and `Value.Metadata` to query metadata. The rendering shows the exact `k` output for each variant, illustrating subtle differences in environment lookup and metadata access.
AI-generated description