Forum Discussion

actzikas's avatar
actzikas
Frequent Visitor
6 years ago
Solved

AND OR on Filter Pane

Is there a way you can create a filter grouping which can handle an AND OR Clauses? 

Example: 

Filter 1: Created Date

Fiter 2: Apponintment = True

OR

Filter 3: Booked by Role = BDR

Filter 4: Activity Type = First Presentation Booked

 

So it would be (Filter 1 AND Filter 2) OR (Filter 3 AND Filter 4)

  • Anonymous's avatar
    Anonymous
    6 years ago

    actzikas 


    Try use varibles to group filters? Something like below.

     

    result = 
    var filtergroup1= Calculate(sum(Table[column1]),filter(Table[Created Date]<="date")&&Table[Apponintment] = True())
    
    var filtergroup2 = Calculate(sum(Table[column1]),filter(Table[Booked by Role] = "BDR")&&Table[Activity Type = "First Presentation Booked")
    
    Return Calculate(sum(column1),Filter(Table,filtergroup1 || filtergroup2)

     

     

    Paul Zheng
    Don't forget to hit THUMBS UP and mark it as a solution if it helps you!

2 Replies