Forum Discussion
Dunner2020
6 years agoPost Prodigy
do not containsstring in DAX
Hi there, I am creating a measure that filters the table based on the 'description' column. I dont want to include the rows if certain keywords present in the description column. I used contains...
- 6 years ago
Dunner2020 , see fine. Is it case sensitive search?
https://docs.microsoft.com/en-us/dax/search-function-dax is case insensitive
You can rewrite like
COUNTROWS(FILTER('Interruptions',not(CONTAINSSTRING('Interruptions'[Description],"FAULTED, LV" ) ) && not(CONTAINSSTRING('Interruptions'[Description],"LV FUSE") ) && not(CONTAINSSTRING('Interruptions'[Description],"CABLE FAULTED")) && not(CONTAINSSTRING('Interruptions'[Description],"BLOWN LV")) && not(CONTAINSSTRING('Interruptions'[Description],"BURNT CONNECTOR LV") ) && not(CONTAINSSTRING('Interruptions'[Description],"INTERMITTENT HIGH LOAD?") ) && not(CONTAINSSTRING('Interruptions'[Description],"LINE , LV")) ) )
amitchandak
6 years agoSuper User
Dunner2020 , see fine. Is it case sensitive search?
https://docs.microsoft.com/en-us/dax/search-function-dax is case insensitive
You can rewrite like
COUNTROWS(FILTER('Interruptions',not(CONTAINSSTRING('Interruptions'[Description],"FAULTED, LV" ) ) &&
not(CONTAINSSTRING('Interruptions'[Description],"LV FUSE") ) &&
not(CONTAINSSTRING('Interruptions'[Description],"CABLE FAULTED")) &&
not(CONTAINSSTRING('Interruptions'[Description],"BLOWN LV")) &&
not(CONTAINSSTRING('Interruptions'[Description],"BURNT CONNECTOR LV") ) &&
not(CONTAINSSTRING('Interruptions'[Description],"INTERMITTENT HIGH LOAD?") ) &&
not(CONTAINSSTRING('Interruptions'[Description],"LINE , LV")) ) )
rjs2
2 years agoResolver I
I an using NOT(CONTAINSSTRING('Email Message'[FromName],"do not reply")), but when I add that to my measure to filter, my email count goes up. why would it go up if I am adding a NOT(CONTAINSSTRING(