I have a list in sharepoint an want to display sum of users workhouers pr. project for logedin user.
The table look like this:
When user1 start the app i want to display in a gallery, his workhouers.
like this
Any ideas?
Solved! Go to Solution.
You can utilize the GroupBy function for this and then add a column to your resultant table with the sum.
Ex.
AddColumns(
GroupBy(
Filter(yourDataTable, user=loggedInUserName),
"user",
"_recs"
),
"hourSum", Sum(_recs, hours)
)
I hope this is helpful for you.
You can utilize the GroupBy function for this and then add a column to your resultant table with the sum.
Ex.
AddColumns(
GroupBy(
Filter(yourDataTable, user=loggedInUserName),
"user",
"_recs"
),
"hourSum", Sum(_recs, hours)
)
I hope this is helpful for you.
Fantasic 🙂
but i gruped by project 😉
now im going to sort witch projects i have worked on an how many houers each day 😉
Yes, sorry, I meant to group by Project and not user.
For the daily sums, you will need to employ the same grouping concept except you will group on the Date instead.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
195 | |
70 | |
51 | |
41 | |
30 |
User | Count |
---|---|
255 | |
120 | |
97 | |
91 | |
78 |