Forum Discussion
Anonymous
6 years agoNot applicable
Use FILTER with CONTAINS
The column in my table follows this structure: Time ["morning";"afternoon"] ["morning"] ["night"] ["night";"afternoon"] I want to create a measure that counts the number of rows...
- 6 years ago
Anonymous try this
_measure = CALCULATE ( COUNTROWS( Taable ), CONTAINSSTRING(MyTable[Time],"morning"))I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos 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.⚡
parry2k
6 years agoSuper User
Anonymous try this
_measure =
CALCULATE ( COUNTROWS( Taable ), CONTAINSSTRING(MyTable[Time],"morning"))
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos 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.⚡