Forum Discussion

tina345's avatar
tina345
Icon for Helper II rankHelper II
5 years ago
Solved

NOT in clause in DAX

Hello all,     I am trying to use not in clause which is equivalent to SQL in DAX and struggling on it.     I have a table/query which has list of accounts which has always been there in that query...
  • parry2k's avatar
    5 years ago

    tina345 try this

     

    cnt_new_loan = calculate(DISTINCTCOUNT(my_table[LOAN_ACCT_NBR]),NOT my_table[LOAN_ACCT_NBR]  IN {1,2})

     

    Check my latest blog post Comparing Selected Client With Other Top N Clients | PeryTUS  I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

    ⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡