SSRS “OR” Filter Logic to filter from “=” and “IN” Operators

后端 未结 2 1297
悲&欢浪女
悲&欢浪女 2021-01-16 04:08

I\'m working on a report where it needs to filter data from either of the two Built-in Fields. so I\'m using the \"FilterExpression\" to query my requirement based on the be

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-16 04:41

    I recently came across the same need do a DATASET FILTER with OR criteria using an IN operator and EQUALS (=) operator.

    The answer by [Hannover Fist] includes the expression code with INSTR() function. In my scenario I had to filter against Number Datatype values. DEVELOPERS BE FOREWARNED... the INSTR() expression is only reliable with TEXT Datatype values. See the screenshot provided below.

    I don't know why Microsoft doesn't just provide the option to change the assumed [AND] criteria to a configurable [AND/OR] criteria to be selected by the report developer. A configuration filter criteria would be so much simpler than the BOOLEAN FILTER EXPRESSION work-around option.


    SSRS-DatasetFilter_(OR Condition-IN Filter).png

提交回复
热议问题