Forum Discussion
unais
6 years agoHelper V
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.
You can use like below:
CALCULATE( DISTINCTCOUNT('FactSales'[Sales ID]), FILTER('dimSales',[Status] IN { "Opened ","Closed" }) )Hi unais ,
About the use of IN, this document is very detailed.
Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
3 Replies
- az38Community Champion
- Tahreem24Super User
You can use like below:
CALCULATE( DISTINCTCOUNT('FactSales'[Sales ID]), FILTER('dimSales',[Status] IN { "Opened ","Closed" }) ) - v-lionel-msftCommunity Support
Hi unais ,
About the use of IN, this document is very detailed.
Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.