Running total every 5 days
I want to sum expanse Sunday to Friday in work week expanse field and ignore Saturday to Sunday I can only sum per week by using week function can’t sum 5 days.
5 replies
-
Just to be clear, sounds like you want all days of the week except Saturday.
You can try either of the following formulas:
1) weekdayIndex(datefield) - will return a number with Monday = 0 - Sunday =6
or
2) weekdayName(datefield) - will return "Monday" - "Sunday"
Then you can just exclude 5 or "Saturday"
-
Is this close to what you had in mind?
If the DB doesn't open to the proper table, open the Dashboard table. You will see a Date field and a formula field.
Select a date between Aug 8 and Aug 21 and you will the record Id of the last 5 records from that date. The records are from Table1.
-
You could try this
let d := Date; sum((select Table1)[Date >= d - 7 and Date <= d and weekday(Date) < 5].Number)
Regards John
Content aside
- Status Answered
- 2 yrs agoLast active
- 5Replies
- 108Views
-
3
Following