web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Group By Function work...
Power Apps
Unanswered

Group By Function working weird with Dataverse columns

(0) ShareShare
ReportReport
Posted on by 4
Hi All,
 
I am working on an app with Dataverse as a source. I am trying to use group by function to filter data and get the sum of values based on the grouped data. Please find the code below.
 
ClearCollect(colEffortRecSummary,GroupBy(Filter(GHRSREQM_EffortRecordingTables,MainRequestGUID=Text(gvarHRSRequestGUID)),mmi_party,mmi_application,mmi_role,groupeditems));  //Grouping by three columns called Party, Application and Role and groupeditems is the name of the groupeddata. 
 
The above code works  fine and satisfies my requirement. 
 
I observed a weird thing that suddenly after each save of the application or after some time , the code just randomly gets modified to the below at the places in the app.
 
ClearCollect(colEffortRecSummary,GroupBy(Filter(GHRSREQM_EffortRecordingTables,MainRequestGUID=Text(gvarHRSRequestGUID)),Party,Application,Role,groupeditems)); 
 
There is no error being shown but this code does not bring out the groupedvalues and is not working as per my requirement. mmi_party become Party , mmi_role becomes Role, mmi_application becomes Application. 
 
Please need your help with this code. 
 
Thanks in advance.
 
 
  • ronaldwalcott Profile Picture
    3,914 Moderator on at
    Curious, Are mmi_party and Party the logical and display names for a column?
  • manoj8586 Profile Picture
    4 on at
    Yes they are @ronoldwalcott. Do you know why is this happening or any alternative to the code ?
  • ronaldwalcott Profile Picture
    3,914 Moderator on at
    I figured they were the logical and display names, but I have no idea why this would happen.
    Log it with support as it is possibly a bug.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard