Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

YTD Case count with multiple statuses (Values)

Hello,   I am stuglling with the dax query i am using the following query to calculate the YTD cases with one filter and it is working fine, now the challange is i need to add in this count specifi...
  • lbendlin's avatar
    6 years ago

    Cases YTD = CALCULATE( COUNT( incidents[incidentid] ),

                                           ALL( incidents[createdon] ),

                                           YEAR( incidents[createdon] ) = YEAR( NOW() ),

                                           incidents[statuscode] IN { 5,6 }

                                         )