Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello
I want to check if a value is present or not in a filtered column.
How can I do that?
I know the function CONTAINS and I was thinking to use it with the function FILTER but the FILTER function returns a table and not a particular column.
Thanks!
Solved! Go to Solution.
Hi @UsePowerBI ,
You could use CALCULATETABLE() to get filtered column2.
Column =
VAR a =
CALCULATETABLE (
DISTINCT ( 'Table'[Column2] ),
FILTER ( 'Table', 'Table'[Column3] = BLANK () )
)
RETURN
'Table'[Column1] IN a
Here is the result.
Hi @UsePowerBI ,
You could use CALCULATETABLE() to get filtered column2.
Column =
VAR a =
CALCULATETABLE (
DISTINCT ( 'Table'[Column2] ),
FILTER ( 'Table', 'Table'[Column3] = BLANK () )
)
RETURN
'Table'[Column1] IN a
Here is the result.
@UsePowerBI ,The information you have provided is not making the problem clear to me. Can you please explain with an example.
Appreciate your Kudos.
I have a table with several columns.
I want to check if the value in Col1 exists in a list of values that is comprised of Col2 filtered by some conditions (e.g. when Col3=blank).
Hope this helps.
Thanks!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
97 | |
84 | |
67 | |
60 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |