Forum Discussion
AJ007
8 years agoHelper I
SamePeriodLastYear is blank
I have a dataset with column for years and another column for unemployment rate. I want to calculate the difference year over year. I tried SamePeriodLastYear but it's giving me blank output. I h...
- 8 years ago
It works for me. Note there was one wtone shaped bracket in the orginal formula I posted
MattAllington
8 years agoCommunity Champion
Assuming you have a year column and a value column
this year = sum(table[value])
last year = calculate([this year],filter(all(table[year]),table[year]=max(table[year))-1))
AJ007
8 years agoHelper I
Sorry it didn't work.
This is my test data
- MattAllington8 years agoCommunity Champion
It works for me. Note there was one wtone shaped bracket in the orginal formula I posted
- AJ0078 years agoHelper I
Thanks Matt,
I will test it and let you know.
Appreciate your help on this.