Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
rudiistianto
New Member

DAX equivalent of SQL filter not LIKE ('Diteruskan')

There's an extremely similar equivalent for SQL's NOT IN - I have no imagination, so an example extremely similar to the last one I actually wrote:

 

Select * from report where report_status not in ('Diselesaikan')

 

NOT IN doesn't work - what's the simpliest DAX equivalent of SQL's NOT IN? 

 

thanks.

1 ACCEPTED SOLUTION

Thanks for your suggestion.
the last one I actually wrote in pbx :

Measure = CALCULATE( COUNT('patra_inspection entity__report'[report_status]),NOT('patra_inspection entity__report'[report_status]) = "Diselesaikan")

 

View solution in original post

2 REPLIES 2
VahidDM
Super User
Super User

Hi @rudiistianto 

 

Please see this link:

 

https://community.powerbi.com/t5/Desktop/DAX-equivalent-of-SQL-s-NOT-IN/m-p/586184

 

 

https://docs.microsoft.com/en-us/dax/not-function-dax

https://www.sqlbi.com/articles/the-in-operator-in-dax/

 

 

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

Appreciate your Kudos✌️!!

Thanks for your suggestion.
the last one I actually wrote in pbx :

Measure = CALCULATE( COUNT('patra_inspection entity__report'[report_status]),NOT('patra_inspection entity__report'[report_status]) = "Diselesaikan")

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.