Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Distinct count rows that are not blank matrix

Hi, 

 

I would like to count the number of non blank values in a matrix.

Values of the matrix are based on a measure.  

 

Tnx for help:)

5 Replies

  • Zubair_Muhammad's avatar
    Zubair_Muhammad
    Icon for Community Champion rankCommunity Champion

    Anonymous 

     

    Try this MEASURE

     

    Measure =
    COUNTROWS (
        FILTER ( ALLSELECTED ( TableName[ColumnName] ), [Measure] <> BLANK () )
    )
    
    • Anonymous's avatar
      Anonymous
      Not applicable

      The measure works fine! Tnx  Zubair_Muhammad 

      But is it possible show the count as 1 per value and not sum count of values <> blank on every value. And sum count on the higher level of the matrix.

       

      My matrix has 3 levels.

       

       

      • Zubair_Muhammad's avatar
        Zubair_Muhammad
        Icon for Community Champion rankCommunity Champion
        Hi
        Try replacing Allselected with VALUES in the above formula
  • mccville's avatar
    mccville
    Frequent Visitor

    Great question - great solution!  this community rocks!