3 Replies Latest reply: Feb 23, 2012 12:08 PM by Margaret Gemmell RSS

    In Set Analysis can you exclude certain values but still count nulls

      Hi, I'm trying to exclude certain values from being counted in an Expression, but still want nulls to be counted,

       

       

      The following script is designed to count the number of students who are PG and Awarded e.g. count number of Internal IDs where the Level Code is PG and Award Status is AW

       

      Count({$< [Level Code] = {'PG'}, [Award Status] = {'AW'}> [Internal ID])

       

      However, I also need to exclude records where another field, the Honour Code, has a value of 3

       

      Count({$< [Level Code] = {'PG'}, [Award Status] = {'AW'}, [Honour Code] -= {'3'}> [Internal ID])

       

      This works and records where the Honour Code = 3 are excluded from the count, however (as expected) all records where the Honour Code is Null are also  excluded from the count and they need to be included.

       

      Is there a way of excluding certain values from a count, whilst still counting the Nulls?