A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
One simple way out is to use this measure for Total Quantity 3MM PY Avg (see column F in the image below).
=if(ISBLANK([Total Quantity PY]),BLANK(),CALCULATE([Total Quantity 3MM Avg],SAMEPERIODLASTYEAR(dimCALENDAR[Date])))
Do the same for the Cost measure as well
Hope this helps.