Skip to content

Evaluate literal numeric LOOKUPVALUE independently of visual filters - #295

Draft
anirudhagarwal-atlan wants to merge 1 commit into
mainfrom
codex/bifuzz-2026-12-04-literal-lookup
Draft

anirudhagarwal-atlan wants to merge 1 commit into
mainfrom
codex/bifuzz-2026-12-04-literal-lookup

Conversation

@anirudhagarwal-atlan

Copy link
Copy Markdown
Collaborator

Power BI cards and grouped visuals using a literal text key in LOOKUPVALUE could return a compiler refusal even when the lookup had one numeric result. This change compiles that lookup against the imported table independently of same-table visual filters. Repeated equal values yield that value, no match yields BLANK, and ambiguous values raise an error. Grouped results retain a virtual blank member when an unmatched relationship key creates one. Cross-table lookups, alternate results and unsupported filter contexts still fall back.

Verification

The same synthetic regression failed on main and passed with this change. It covers empty tables, duplicate equal values, mixed-case keys, same-table grouping and CALCULATE, an unmatched relationship key, and an ambiguous lookup containing BLANK.

Power BI golden outcomes Main Candidate
Match 144 146
Mismatch 4 4
Refused 157 155
SQL error 2 2
Total 307 307

Only the scalar price lookup and grouped lookup under a same-table filter changed. Both now match Power BI. No golden answers were edited.

The authored publishing-adoption control stayed at 7/7 correct across the same five readable handovers. The focused test module passed all nine tests; the build and repository checks passed (1534 unit tests, 49 skipped).

Verified against 46007c94c97f3dc2da464b2b75a371e9233d2af8. Synthetic regression evidence only. Draft for human review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant