Repository navigation
Evaluate literal numeric LOOKUPVALUE independently of visual filters - #295
Draft
anirudhagarwal-atlan wants to merge 1 commit into
Draft
anirudhagarwal-atlan wants to merge 1 commit into
anirudhagarwal-atlan wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
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.