Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
My goal is to lookup the correct values in the calculated column ToyColor, without changing the relationships. My understanding is that LOOKUPVALUE and TREATAS do not work, because of the active relationships, which I do not want to remove or change.
This is the data model:
This is the data:
LOOKUPVALUE fails:
TREATAS fails:
The goal:
Solved! Go to Solution.
When both-sided cross filter directions are used, it seems, LOOKUPVALUE and TREATAS work properly in two cases:
With an active direct relationship it will probably work too, but then there is also a RELATED function.
With only one, but indirect relationship between the tables, it is impossible to make LOOKUPVALUE and TREATAS work properly. It covers two cases - impossible to make these functions to work credibly when:
When both-sided cross filter directions are used, it seems, LOOKUPVALUE and TREATAS work properly in two cases:
With an active direct relationship it will probably work too, but then there is also a RELATED function.
With only one, but indirect relationship between the tables, it is impossible to make LOOKUPVALUE and TREATAS work properly. It covers two cases - impossible to make these functions to work credibly when:
Hi @Zyg_D ,
The result can't get "Green" (ColorID =3 in table "Color"). Because there is not a direct relationship between table "Toy" and "Color". And there is not a value whose color ID is 3 in "PetToy" and "Pet". Then the "Color" table just returns "Black"(ColorID = 1).
If don't change the relationship, I don't think we can implement what you want.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
89 | |
77 | |
60 | |
47 | |
39 |
User | Count |
---|---|
118 | |
85 | |
81 | |
58 | |
39 |