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

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.

Reply
teaguejs
Helper II
Helper II

Trying to filter for any rows that contain a list of values in a column

Hi, I have a column that contains strings, for example "CVE-2017-11882". I am trying to return all rows where it has any of the following values in that specific column titled "CVE-ID":

CVE-2021-22900
CVE-2021-26855
CVE-2021-26857
CVE-2021-26858
CVE-2021-27065
CVE-2021-27101
CVE-2021-27102
CVE-2021-27103
CVE-2021-27104

1 REPLY 1
Samarth_18
Community Champion
Community Champion

Hi @teaguejs 

 

Please try this:-

measure =
COUNTROWS (
    FILTER (
        "table",
        'table'[CVE-ID]
            IN {
            "CVE-2021-22900",
            "CVE-2021-26855",
            "CVE-2021-26857",
            "CVE-2021-26858",
            "CVE-2021-27065",
            "CVE-2021-27101",
            "CVE-2021-27102",
            "CVE-2021-27103",
            "CVE-2021-27104"
        }
    )
)

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.