The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
108 | |
76 | |
66 | |
52 | |
50 |
User | Count |
---|---|
121 | |
118 | |
77 | |
64 | |
63 |