Forum Discussion

lundande's avatar
lundande
Frequent Visitor
4 years ago
Solved

Filter dataset for SELECTEDVALUE() using SEARCH()

I have a data set of 15 million rows that needs to be filtered based on a value that can appear in a any one of 6 seperate columns ( not a great dataset). I concatenated these columns so I can use SE...
  • smpa01's avatar
    4 years ago

    lundande  does this work?

    Measure =
    VAR company =
        SELECTEDVALUE ( 'All Columns'[COMPANYNAME] )
    RETURN
        CALCULATE (
            MAX ( 'All Columns'[COMPANYNAME] ),
            SEARCH ( company, 'All Columns'[Search Column], 1, -1 ) > 0
        )