Forum Discussion
heidibb
Helper IV
2 years agoHow to get Last Year values
Hello, I have academic data that we report in trimesters. I have a trimester sequence number and am successful in getting last year's sequence number, but when I create my calculation to try and fi...
amitchandak
Super User
2 years agoheidibb , Are you using a date or Trimester table with Year, Trimester Sequence (a table that join back to you table on Trimester key)
You can meausres like
This Period = CALCULATE(DISTINCTCOUNT( Registration[ID] ), FILTER(ALL(Semesters), Semesters[year]=max(Semesters[year]) && Semesters[Semesters]=max(Semesters[Semesters]) ))
Last Period = CALCULATE(DISTINCTCOUNT( Registration[ID] ), FILTER(ALL(Semesters),Semesters[year]=max(Semesters[year]) -1 && Semesters[Semesters]=max(Semesters[Semesters]) ))
here Semesters are numbers within year like 1,2,3 and reset every year