i try your idea but that isn't good for the pivot.
i find a bug in that block and posted it in the Bug category.
i think pivot haven't any problem just time frame have issue
i think the best way to change the time frame is "set current timeframe" block.
thank you