Convert excel formula into DAX

43 views Asked by At

=COUNTIFS('Incident Data'!$M:$M,"x",'Incident Data'!$G:$G,"Aircraft Damage - Other", 'Incident Data'!$A:$A, ">=1/1/22", 'Incident Data'!$A:$A, "<=1/31/22")

I look up some example and tried doing it but nothing is working out and hope one you guys can help. Thank you

1

There are 1 answers

1
Sam Nseir On
YourMeasure =
  CALCULATE(
    COUNTROWS('YourTable'),
    'YourTable'[NameOfColumn M] = "x" &&
    'YourTable'[NameOfColumn G] = "Aircraft Damage - Other" &&
    'YourTable'[NameOfColumn A] >= DATE(2022, 1, 1) &&
    'YourTable'[NameOfColumn A] <= DATE(2022, 1, 31)
  )