Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello, what would be the expression to calculate the number of entries made in the current week and also last week? I cant use a static value for week as the data I am dealing with is updated everyday. Thanks.
Use set analysis
e.g.
Sum({<OrderDate={">=$(=weekstart(today())) <=$(=weekend(today()))"}>}Sales) - current week
Sum({<OrderDate={">=$(=weekstart(today()-7)) <=$(=weekend(today()-7))"}>}Sales) - previous week
Use set analysis
e.g.
Sum({<OrderDate={">=$(=weekstart(today())) <=$(=weekend(today()))"}>}Sales) - current week
Sum({<OrderDate={">=$(=weekstart(today()-7)) <=$(=weekend(today()-7))"}>}Sales) - previous week
Check out the inweek function
Hi , thanks it worked