March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello,
Do you know how to use the VALUES function with filter?
I want to get one unique column by VALUES function, and this column also should base on another column condition according to the SELECTEDVALUE?
such as Column A, B
I want to get the VALUES(column A which column B=SELECTEDVALUE)
Solved! Go to Solution.
hi, @hemingt
For your case, I think you need to use IN operator in the formula.
for example:
FILTER( TBALE, SELECTEDVALUE( column B) IN VALUES(column B))
Here is a blog for you refer to:
https://www.sqlbi.com/articles/the-in-operator-in-dax/
If you still have problem, please share some sample data and your expected output.
Best Regards,
Lin
hi, @hemingt
For your case, I think you need to use IN operator in the formula.
for example:
FILTER( TBALE, SELECTEDVALUE( column B) IN VALUES(column B))
Here is a blog for you refer to:
https://www.sqlbi.com/articles/the-in-operator-in-dax/
If you still have problem, please share some sample data and your expected output.
Best Regards,
Lin
it seems that my solution did not work.
CALCULATETABLE(VALUES(Tasks[Week]), FILTER(Tasks, Tasks[Fix Version] = SELECTEDVALUE(Tasks[Fix Version])))
I have a table Tasks, and want to firstly apply the filter "Tasks[Fix Version] = SELECTEDVALUE(Tasks[Fix Version])"
then get the unique value of the column Week by using VALUES.
Do you know how to do?
Thank you @v-lili6-msft
I use the below to solve my problem
anyone who can help on this topic? Thank you very much!
if there is anythin unclear, please let me know.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |