Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Kapcer
Frequent Visitor

List of values in a column

Kapcer_0-1663598662118.png

This is my dax formula. In var possibleplayers I want to filter the playerinfo table to only return players with a certain position. I tried using Filter, Values, AllEXCEPT but they return tables.I need a function or a combination that returns a list of values from a column like ALL but unlike ALL can be filltered.


 

1 ACCEPTED SOLUTION
Kapcer
Frequent Visitor

Thanks for trying to help, those solutions didn't work. I didn't find one that solves this issue but I achived the result I wanted in a different way. 

View solution in original post

3 REPLIES 3
Kapcer
Frequent Visitor

Thanks for trying to help, those solutions didn't work. I didn't find one that solves this issue but I achived the result I wanted in a different way. 

v-yueyunzh-msft
Community Support
Community Support

Hi, @Kapcer 

According to your description, you want to return the value of a column of a table. Right?

You can use the FILTER function to filter your table first, then use the SELECTCOLUMNS() function to get a column in that table to generate a new table, like this :

PossiblePlayers = SELECTCOLUMNS(FILTER(ALLSELECTED(playerInfo[ID]),[position] = "your filter condition"),"ID",[ID])

This expression returns a single-column table, and you can use the STATIC() or VALUES() functions for deduplication, or iteratively evaluate using maxX() or MINXX() functions.

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Greg_Deckler
Community Champion
Community Champion

@Kapcer Try:

VAR PossiblePlayers = SELECTCOLUMNS(FILTER(ALL(playerInfo[ID]),[position] = "something"),"ID",[ID])


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.