Forum Discussion

gthistlethwaite's avatar
gthistlethwaite
Frequent Visitor
8 years ago
Solved

CountRows of Multiple Columns

I have 4 columns of data. I need to sum the 4 columns based on a text value.   I was able to perform on 1 column, but then receive an error trying to add these together.   AsiaTTL = COUNTROWS(FI...
  • gthistlethwaite's avatar
    gthistlethwaite
    8 years ago

    Fixed now, it required an extra closing bracket before the next +COUNTROWS:

     

    AsiaTTL = COUNTROWS(FILTER('QHSE Award Voting','QHSE Award Voting'[Cat1]="Asi"))+COUNTROWS(FILTER('QHSE Award Voting','QHSE Award Voting'[Cat2]="Asi"))+COUNTROWS(FILTER('QHSE Award Voting','QHSE Award Voting'[Cat3]="Asi"))+COUNTROWS(FILTER('QHSE Award Voting','QHSE Award Voting'[Cat4]="Asi"))