Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Or Logic for multiple fields in filter

In same table, I have two fields with sample value as shown in table. I want to filter data only when

Field1=A OR Fields2 =A.

As understood, the default logic in this case is AND not OR. Please help.

 

Field1Field2
AA
BX
CY
DY

 

 

  • Hi Anonymous 

    Create a calculated table:

    NewTable =
    FILTER ( Table1, Table1[Field1] = "A" || Table1[Field2] = "A" )
    

     

2 Replies

  • AlB's avatar
    AlB
    Community Champion

    Hi Anonymous 

    Create a calculated table:

    NewTable =
    FILTER ( Table1, Table1[Field1] = "A" || Table1[Field2] = "A" )
    

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      AlB Thanks. I have organizational limitations due to live data source. Is there any way to achieve this only being on level of report without going to data or model?

      Just started learning and quite excited.