Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

How to count text value

Hi,   Request your guidance to solve this issue   in my table "salesdistrictwise" got a text field named "status" which contains   "active" or "inactive" data.  I would like to get a count of "ac...
  • rsbin's avatar
    4 years ago

    Anonymous ,

    The following DAX Measure should work:

    Active_Count = CALCULATE( COUNTA( YourTable[salesdistrictwise) ),
                              FILTER( YourTable, YourTable[salesdistrictwise] = "active" ))

    Good Luck and Regards,