As shown below Manilyn and Maeson are being used six (6) times because there are six (6) types of Leave. I used Gallery ThisItem.Employee.DisplayName it also simply show six (6) times per employee name as it was in the sharepoint list. But is it possible to show just one name per employee in powerapps ? All I want id to make it an Employee list and show its balance leave details as I click their names.
Sharepoint List:
I just want it to be like this.
Not quite your format (you cannot do this), but this should get you the information required
AddColumns(
GroupBy(
'Balance Leave Masterlist',
"Employee",
"LeaveType",
"Data"
),
"LeaveNo",
CountRows(Data),
"AllowedCreditLeave",
Sum(Data,Allowable),
"UsedLeave",
Sum(Data,Used),
"LeaveBalance",
Sum(Data,TotalBalance)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
To which property should I put this code on?
The Items of the gallery you mentioned.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
Hi @Manilyn0509 ,
Just checking if you got the result you were looking for on this thread. Happy to help further if not.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
Hi, @WarrenBelz ,
Seems like it's not working on person/group and choice column. Is there's any way? Thanks for helping .
Correct - you cannot GroupBy complex field types
AddColumns(
GroupBy(
AddColumns(
'Balance Leave Masterlist',
"StaffName",
Employee.DisplayName
),
"StaffName",
"LeaveType",
"Data"
),
"LeaveNo",
CountRows(Data),
"AllowedCreditLeave",
Sum(Data,Allowable),
"UsedLeave",
Sum(Data,Used),
"LeaveBalance",
Sum(Data,TotalBalance)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
Hi @Manilyn0509 ,
Just checking if you got the result you were looking for on this thread. Happy to help further if not.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
User | Count |
---|---|
247 | |
106 | |
82 | |
50 | |
43 |