Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Previous year DAX measure

Hi - I'm trying to create a measure that calculates the previous year's value i.e. for 2015 it would show 346 (6617-6271).    I've tried SAMEPERIODLASTYEAR and PARALLELPERIOD with no success - the ...
  • Anonymous's avatar
    Anonymous
    8 years ago

    resolution in case it helps someone else: 

     

     

    PatientsRaw = table name

     

    Unique Patients = DISTINCTCOUNT(PatientsRaw[PersonID])

     

    UniquePatientDiff = [Unique Patients] - CALCULATE([Unique Patients],FILTER(ALLEXCEPT(PatientsRaw,PatientsRaw[PayorName]),[CalendarYear]=MAX([CalendarYear])-1))