Forum Discussion
jvanarsdale
3 years agoFrequent Visitor
How do I count rows and exclude certain text?
I see lots of answers on how to count rows containing certain text, but I need to count rows of text that do not contain the word "Open". How do I do this?
- 3 years ago
Yes! That worked! Thank you SO much! Been struggling all morning on that. I am a relatively new user.
jvanarsdale
3 years agoFrequent Visitor
Unfortunately, this didn't work. Is there another piece to the code?
- Timuran3 years agoResolver I
I just sent you the FILTER (which you need to use inside CALCULATE).
Create a new measure like this :
YourMeasure = CALCULATE( COUNT('YourTable'[YourColumn]),FILTER('YourTable', NOT(CONTAINSSTRING('YourTable'[YourColumn], "Open")))Have a nice day.
- jvanarsdale3 years agoFrequent Visitor
Yes! That worked! Thank you SO much! Been struggling all morning on that. I am a relatively new user.
- Timuran3 years agoResolver I
Glad it is working well 🙂