A screenshot of what you have (include the all the pills on all the shelves) and then a screenshot or mockup of what you're hoping for. Then we can better help.
Thank you Shawn
I resolved this problem like below:
current year's amount :
if YEAR(TODAY())=year([DT]) then
previous year's amount :
if year(DATEADD('year',-1,TODAY())) = year([DT]) then