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.
 
 
I have the same question (0)
  • ronaldwalcott Profile Picture
    3,862 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,862 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 531 Most Valuable Professional

#2
Haque Profile Picture

Haque 261

#3
Kalathiya Profile Picture

Kalathiya 221 Super User 2026 Season 1

Last 30 days Overall leaderboard