Hi,
We are building interactive visualization to compare the sales data over timelion, ask is to compare the sales today to yesterday(this duration should be customizable), which i am able to achieve by having a offset on the timelion expression something like below. I want the offset to be dynamic. Do we have an option to build this with the help of drop down, something like when i choose 1 week, actual and the offset duration change to 1 week without having to choose the expression manually.
es(index=logs*, metric=cardinality:sales.id).label('Sales Current'), .es(index=logs*, metric=cardinality:sales.id, offset=-1d).label('Sales Yesterday')