Forum Discussion

frieso's avatar
frieso
Regular Visitor
6 years ago
Solved

Combining Filter with AND

Hello Community,

 

I have two Tables: Customers and Contracts. In the contracts table I have one column "type". I then have a matrix where I display per client which typ's of contracts he has. 

 

I want now to be able to filter the customers by contract typs. This works but it filters the customer with "OR" on every type I filter. How could I set the filter to "AND" the typs in the way: all customers that have e contract of type A AND B AND E? 

 

Thanks for your help!

5 Replies

    • frieso's avatar
      frieso
      Regular Visitor

      Hi Greg_Deckler ,

      thanks for the quick response. The data structure is as Follows:

      Customer:

      Customer NameCustomer ID
      Foo123
      Bar456

       

      Contracts:

      IDCustomerIDType
      C12123A
      C13123B
      C14456A
      C15456B
      C16456E

       

       

      I now want to ad a filter to the report, so that the report users can analyze which customers have contracts of type "A AND B" or "A AND B AND E" (Results in Customer 456, named Bar). 

  • If you need on of the value

     

    Table[ e contract of type] in {"A", "B","E"}

     

    I am not how both can be true , but this example of and

    Table[ e contract of type]= "A" && Table[ e contract of type]= "B" && Table[ e contract of type]= "E"

     

    Example of OR

    Table[ e contract of type]= "A" || Table[ e contract of type]= "B" || Table[ e contract of type]= "E"