Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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 have done lots of tricks to get a dates column as the original dataset didn't have a dates column but only the years column.
Please help.
Solved! Go to Solution.
It works for me. Note there was one wtone shaped bracket in the orginal formula I posted
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))
Sorry it didn't work.
This is my test data
It works for me. Note there was one wtone shaped bracket in the orginal formula I posted
Thanks Matt,
I will test it and let you know.
Appreciate your help on this.
Thanks Matt,
I will test it and let you know. Thanks again.