Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Syndicate_Admin
Administrator
Administrator

PowerApp gallery with Groupby, filter, sortbycolumns and sum

I have table to track total tasks by staff.
I need a gallery to show past 7 days total tasks by Staff and Task type. the gallery need to order highest total task by person on top.

I used below however the filter is not working also unable to figure out how to sort by columns.
I used "AddColumns" because the "Person" column was not visible to Group.

 

GroupBy(Filter(AddColumns(
'Activities monitor',"StaffName",Person.DisplayName,"TotalTask",Sum(Total,0)), DateDiff('Date of Activity',Today(),Days)>=7), "StaffName","DATA")

 

raneesh_mr_0-1652423159352.png

 

3 REPLIES 3
Anonymous
Not applicable

Hi @Syndicate_Admin ,

 

You could directly create a Matrix visual to get such output:

Eyelyn9_0-1652770613662.png

Then apply [Date to Activity] field to slicer, select Relative Date type to remain last 7 days:

 

Eyelyn9_1-1652770855128.png

 


Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@Syndicate_Admin 

 

I need this data in PowerApp, not in Power Bi

lbendlin
Super User
Super User

Yo may want to post in the PowerApps forums.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.