Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Foutmelding countrows

Wanneer ik in Power BI met een nieuwe meting een functie wil creëren die de cellen in een tabelkolom telt met een bepaalde tekst erin, gebruik ik nu functie countrows.    Ik krijg nu de mislukte sy...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Anonymous ,

    Please try this DAX:

    RowCount = 
    CALCULATE(
        COUNTROWS('Table1'),
        FILTER(
            'Table1',
            CONTAINSSTRING('Table1'[Column1], "the text the formula should count")
        )
    )

    I created sample data and tested that the program works.

    Best Regards,
    Dino Tao
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.