Forum Discussion

kk_shp_user's avatar
kk_shp_user
Helper I
2 years ago
Solved

Getting count per category in one column using data in another column

Edit: Simplified my example and description to make it easier to understand.   I have a data like below. The table contains employees and managers. Managers are also present as employee records. ...
  • tamerj1's avatar
    2 years ago

    Hi kk_shp_user 

    Try using TREATAS 

    Total_Emps_at_Title =
    CALCULATE (
    COUNTROWS ( 'Table' ),
    TREATAS ( VALUES ( 'Table'[recruiter_title] ), 'Table'[emp_title] )
    )