Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

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...
  • parry2k's avatar
    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.