Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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 containsstring() function to exclude keywords. I have created the measure with the following code:
However, it does not filter. I am not sure where am I making the mistake? Is it the right way to use containstring() function to exvclude the keywords?
Solved! Go to Solution.
@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")) ) )
Excellent, this worked for me too, thank you !
@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")) ) )
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(
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 54 | |
| 47 | |
| 39 | |
| 16 | |
| 15 |
| User | Count |
|---|---|
| 82 | |
| 69 | |
| 39 | |
| 29 | |
| 27 |