Forum Discussion

Believer's avatar
Believer
Icon for Advocate IV rankAdvocate IV
4 years ago
Solved

Counting subsets of rows

Considering the following sample data, where the first 4 columns are in a table and the last column (Cust_RecID_Count) is calculated: Customer   RecID   SecID   PosID   Cust_RecID_Co...
  • AllisonKennedy's avatar
    AllisonKennedy
    4 years ago

    Believer 

     

    You can filter the measure instead of the visual: 

     

    Cust_RecID_Count = IF(ISBLANK([Customer Count]), BLANK(), CALCULATE([Customer Count], ALLEXCEPT('Table', 'Table'[Customer  ], 'Table'[RecID  ])) )