Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

counting values with conditions using DAX

I feel like this is a very simple questions, but can't seem to get it to work.  I'm trying to do a countif in essence.    I basically want to summarize the number of machines needed to make certain...
  • ValtteriN's avatar
    4 years ago

    Hi,

    So you want to get the table to ignore every filter context but product? Here is an example on how to do that:

    Data:


    Dax:

    Measure 13 = CALCULATE(COUNTROWS(NumberOfMachines),ALLEXCEPT(NumberOfMachines,NumberOfMachines[Product]))
     
    End result:

    I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!