I have a script that is calculating pivots, but I only want to show the pivots for the last 2 time periods. So if I choose Day as the range, then show the pivots only for th