Forum Discussion

njxfoster's avatar
njxfoster
Icon for Helper I rankHelper I
4 years ago
Solved

How to If text column CONTAINS specified value, Then Count it

Hi Everyone,   I'm trying to create a calculated measure in one of my tables that help me count every column that contains the word "Warm".   How can I implement CALCULATE(COUNTROWS to achieve th...
  • VahidDM's avatar
    VahidDM
    4 years ago

    Hi njxfoster 

     

    Try this measure:

    Measure =
    CALCULATE (
        COUNTROWS ( 'Table' ),
        FILTER ( 'Table', CONTAINSSTRING ( 'Table'[Connection Details], "Warm" ) )
    )

     

     

    If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
    Appreciate your Kudos!!
    LinkedIn: 
    www.linkedin.com/in/vahid-dm/