Forum Discussion
Help with lookup from SELECTEDVALUE
Hello,
In a calculated column, I want to return a single value from the same table based on the SELECTEDVALUE. Meaning I have a slicer and choose Account A12345 and I want to return the country for that account at the row level to compare with other accounts.
I am having a problem getting the calculated column to filter and it returns the MAX country of the whole table.
I am having problems using the slicer and not having it filter the whole table for just the one chosen Account ID, I just want it to update the value so I can use it for the lookup.
Please help! Thanks!
I am trying the below but not getting it to work
7 Replies
- lbendlin
Super User
Calculated tables and columns are immutable and cannot be impacted by filters.
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523- gsed99
Helper III
Thank you, here is an example excel file with dummy data to illustrate the contect, change the slicer up top to see the changes below and the underlying formulas
I am wanting the user to select an ID by which row level logic can be evaluated against to show the relationship between the ID chosen and the ID in each row.
https://docs.google.com/spreadsheets/d/1W6MoKR5h7uSwCFqFq7axznNbl8sI2K-S/edit?pli=1#gid=1257160936
- gsed99
Helper III
Sorry updated link to shared access
- lbendlin
Super User
I don't understand how you arrive at the 1/3/3 Cohort logic. Please elaborate.
And to be clear - this can only be done via a measure, it is not possible to create a calculated table from a slicer selection.