Forum Discussion

AFra's avatar
AFra
Icon for Helper III rankHelper III
5 years ago
Solved

New measure : what am I doing wrong?

Hi all,    I created a measure such as :    # patients = calculate(counta(Patient[Id]), year(Patient[CreationDate])=2020) it works nicely and counts the number of new patients in 2020.    how...
  • lbendlin's avatar
    5 years ago

    # patients =

    var y = [Year report]

    return calculate(counta(Patient[Id]), year(Patient[CreationDate])=y)