Forum Discussion
Previous year DAX measure
- Anonymous8 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))
Greg_Deckler thanks for your suggestion - unique patients is a measure so it won't let me put it in a SUM; would you be willing to share your email? I have the file in dropbox and could share it with you.
Oh, just take out the SUM's then if it is already a measure. You can use a measure in another measure without an aggregation.
- Anonymous8 years agoNot applicable
Greg_Deckler - the formula returns a result, but not what I'm looking for; tried a few different things with no success, not sure what the issue is. any chance I can share the file with you?
Year UniquePts Diff
2014 54 52 2015 43 43 2016 32 31 2017 30 30 =[Unique Patients] - CALCULATE([Unique Patients], FILTER(ALL(Table1), [ServiceDate] = MAX([ServiceDate])-1))
- Greg_Deckler8 years ago
Community Champion
Maybe something with your measure calculation, can you share your formula?
You can email me at gdeckler @ fusionalliance . com
- Anonymous8 years agoNot applicable
thanks very much - I shared the file through dropbox; let me know if you didn't get it.
here's the current formula:
=[Unique Patients] - CALCULATE([Unique Patients], FILTER(ALL(Table1), [ServiceDate] = MAX([ServiceDate])-1))