Forum Discussion

sanjeev803's avatar
sanjeev803
Icon for Helper I rankHelper I
7 years ago
Solved

DAX - Ignore 0 in count

Hi All,   I need some help on DAX funtion. I want to get the count of all non zeros values by brand. My existing data is : Brand Web Estate Value A 78 A 52 A 0 A 0 A 56 ...
  • parry2k's avatar
    7 years ago

    sanjeev803 based on your data, your output result in your post is wrong. Anyhow here is the measures

     

    Zero by Bank = 
    CALCULATE( 
    COUNTROWS( Table2 ), 
    ALLEXCEPT( Table2, Table2[Band] ), Table2[Web Estate Value] = 0 
    )