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.
I'd like to get a list of values of a column in a table so that I can do a condition where " if (_myDepartment in _valuesOfColumn, do A, else B)". I'll use the boolean value from that variable in another variable.
I can use Values function, but I need to ignore the context filter so the list has the full list of values.
In short:
I currently have a variable where
This essentially the values from a column of a table. I guess I wanna get these values dynamically.
I can't seem to find an answer for this, but any idea for how to accomplish this?
Solved! Go to Solution.
The VALUES function does this. Consider other similar functions too depending on your exact requirements: DISTINCT, ALL, ALLSELECTED).
HI @YukiK,
You can try to use the following measure formula to compare selection and list of values to return tag:
Measure =
IF (
COUNTROWS ( INTERSECT ( VALUES ( Table[Column] ), ALL ( Tableb[Column] ) ) ) > 0,
"A",
"B"
)
Regards,
Xiaoxin Sheng
HI @YukiK,
You can try to use the following measure formula to compare selection and list of values to return tag:
Measure =
IF (
COUNTROWS ( INTERSECT ( VALUES ( Table[Column] ), ALL ( Tableb[Column] ) ) ) > 0,
"A",
"B"
)
Regards,
Xiaoxin Sheng
The VALUES function does this. Consider other similar functions too depending on your exact requirements: DISTINCT, ALL, ALLSELECTED).
@YukiK , assume you want to use in a filter
filter(Table, _myDepartment in values(Table[Column]))
or
filter(Table, _myDepartment in allselected(Table[Column]))
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 |
|---|---|
| 79 | |
| 38 | |
| 31 | |
| 27 | |
| 27 |