Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Measure - Count two columns with certain values

Hi there

I have two columns Current Month and 48hrs. 

I would like to count the rows where Current Month value = "Yes" and 48hrs value = "<=48hrs"

 

Example Table

Current Month   |  48hrs

Yes                        <=48hrs

No                         >48hrs

Yes                        <=48hrs

 

This should return a value of 2.

 

Any help with the dax is much appreicated.

Tim 

2 Replies

  • Anonymous , Like

    calculated(countrows(Table),filter(Table,Table[Current Month value] = "Yes" && Table[48hrs value] = "<=48hrs"))

    • Anonymous's avatar
      Anonymous
      Not applicable

      Perfect... worked a treat 🙂