Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi,
I wonder if is it somehow possible to select values from table based on value from non-related table (or, in fact, related but not in a way needed in that task)?
I mean I have one table with some codes and I want to be able to show in report all rows from another table with the code selected in the first table, something like filter on TableB[code] = SELECTEDVALUE(TableA[code]). I tried to create some sort of a measure with variable but I'm a novice in PBI and I'm definitely doing something wrong, because whereas it seems as quite an easy task - simply pass and get the value, but nothing works for me
@Arul Thank you for the reply!
I have that kind of data
And I expect if I select vendor code in the first table, in second I'll see all orders with that vendor code
So the main task is to pass the value of the selected code to use it for the filtration in the second table as if that two tables have actual relationship by vendor code (which they don't have)
@oddarin ,
Based on my research so far I have achieved it through measure which you need to apply at visual level, before selection the visual will be blank but if you select any code in table it will display in table.
Interaction =
VAR _values = VALUES('List 2'[Value])
VAR _result = IF(SELECTEDVALUE('List 1'[Value]) IN _values,1,0)
RETURN _result
Thanks,
Arul
2 years later, this post is still helpful.
This worked perfectly for me thanks
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
83 | |
42 | |
30 | |
27 | |
27 |