Forum Discussion

unais's avatar
unais
Helper V
6 years ago
Solved

Using " IN " Function

Dears ,

 

I had to specfiy Multiple Values With Filter function with OR , instead OR function Like in SQL can be user " IN " function please advise.

3 Replies

  • You can use like below:

     

    CALCULATE(
    DISTINCTCOUNT('FactSales'[Sales ID]),
    	FILTER('dimSales',[Status] IN { "Opened ","Closed" })
    )

     

  • v-lionel-msft's avatar
    v-lionel-msft
    Community Support

    Hi unais ,

     

    About the use of IN, this document is very detailed.

    IN operate .

     

    Best regards,
    Lionel Chen

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.