Maybe this How to overlap an offset time series in OH3? (Corelate yesterdays values vs. today) - #6 by ysc