Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Tricky - Text Count first 8 letters

Hi Experts

 

I have several columns with text in each column that start with the word MATERIAL - blah blah etc.... i to be able to count those fields that start with the word material as opposed to typing in the full text each time...

 

My current measure is

Countrows(filter(App Forms, [Impact]="Material")) which is not working....

  • Hey Anonymous ,

     

    try the following approach:

    Rows with Material =
    CALCULATE(
        COUNTROWS( 'App Forms' ),
        LEFT( 'App Forms'[Impact], 8 ) = "Material"
    )

     

    If you need any help please let me know.
    If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
     
    Best regards
    Denis
     

     

2 Replies

  • selimovd's avatar
    selimovd
    Most Valuable Professional

    Hey Anonymous ,

     

    try the following approach:

    Rows with Material =
    CALCULATE(
        COUNTROWS( 'App Forms' ),
        LEFT( 'App Forms'[Impact], 8 ) = "Material"
    )

     

    If you need any help please let me know.
    If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
     
    Best regards
    Denis
     

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      many thanks