Hey guys
I feel like I'm sooo close to figuring this out, but I still haven't cracked this nut yet.
I have a SP list that captures the user (TM) and allow them to input the amount of time spent with their coachee.
My gallery is filtered to show today's entries, and the entries by the user.
I also want to display a label that shows a total of the time for all entries for today.
I've added a label and I can add a sum function to the label but it sums the entire "time" column in the SP list. It's like a need to combine the fitler functions that sort out just the users entries for today + the sum function.
Any ideas?
Solved! Go to Solution.
If the name of your gallery is galTimeListing, and the name of the label holding the time value is lblTimeValue
Then use this formula in the totals label:
Sum(galTimeListing.AllItems,lblTimeValue.Text)
That should give you the total for the filtered gallery
If the name of your gallery is galTimeListing, and the name of the label holding the time value is lblTimeValue
Then use this formula in the totals label:
Sum(galTimeListing.AllItems,lblTimeValue.Text)
That should give you the total for the filtered gallery
Hi @smartin,
Based on the formula that you mentioned, I think there is something wrong with it.
I have made a test on my side, please take a try with the following workaround:
Set the Text property of the Label control to following:
Sum(Gallery1.AllItems, Duration)
On your side, you should type:
"Today's Total Time: " & Sum(Gallery1.AllItems, Time) /* <- Gallery1 represents the Gallery control within your app */
Best regards,
Thank you for that solution! It worked great! 🙂
To that effect...do you know of any way (outside of a date picker) to have the gallery filtered by the current month that I'm in? So in January...it would just show January and so on as the year progresses.
User | Count |
---|---|
142 | |
137 | |
78 | |
77 | |
73 |
User | Count |
---|---|
228 | |
177 | |
68 | |
68 | |
58 |