Forum Discussion

Holland1998's avatar
Holland1998
Frequent Visitor
5 years ago

Filter multiple rows based on single row value

Hi all,

 

I have data in Column A and column B. Wanted to try and recreate column C.

 

 

I could think to do a CONCATENATEX and ALLEXCEPT and then a IFISNUMBERSEARCH but wondered if there was an easier way?

 

Thanks,

 

Tom and Anonymous 

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Holland1998 

     

    Are you looking for a measure or a calculated column?

  • Anonymous's avatar
    Anonymous
    Not applicable
    [Opp Has Bananas?] = // calculated column
    var Opp_ = T[Opportunity ID]
    var Result =
        NOT ISEMPTY(
            FILTER(
                T,
                T[Opportunity ID] = Opp_
                &&
                T[Product Sold] = "bananas"
            )
        )
    return
        if( Result, "Yes", "No" )
  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous 

     

    Thanks for this. On behalf of Holland1998, I can say this has worked well for what we needed.