Forum Discussion

Jonnokc's avatar
Jonnokc
Frequent Visitor
10 years ago
Solved

DAX function to count specific text values from a column

Hello,   How I am trying to total a specific value from a column. The column contains multipe values and I want to know the count for a specific value.   The COUNTA function just totals every bla...
  • konstantinos's avatar
    10 years ago

    You need to write a formula like  which will count all the rows containing "This Value" 

    CountValues =
    CALCULATE ( COUNTROWS ( TableName ); TableName[ColumnName] = " This Value " )