Based on my test as below, it seems the dax is correct. You may try to check the relationships or date hierarchy in your data. If it is not your case, please share some data sample. You can upload it to OneDrive or Dropbox and post the link here.
Community Support Team _ Cherie Chen If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
First one is with Date and Values. Second one is where I am trying to build it similar to the first one but with using Difference as values. When I do that it is showing only per year instead of quarter. When I change the Date format to Date instead of Date Hierarchy it not showing any data for the years.
I am not sure why it is not working. Any help is appreciated.