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 / GroupBy returning blan...
Power Apps
Answered

GroupBy returning blank columns on SQL connection

(0) ShareShare
ReportReport
Posted on by 13

Hi, when using an SQL connection I get proper data, but the problem is that this data needs to be grouped in order to be used later.

 

I have placed OnStart the next formula: 

 

 

 

Collect(DataCollection;GroupBy([DATABASE];[Value];[OtherColumns];"ValueStorage"))

 

 

 

And when checking this collection, most of the grouped fields appear blank, except for the one with the value (for clarification, "[OtherColumns]" is just placeholder for the other columns for grouping). This results on the gallery that is trying to show the results showing just empty fields, except for the one that is showing. If I get the values on their own without the GroupBy, it works fine.

Categories:
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @jprojas 

     

    Can you try to change the expression to:

    Collect(FullDataCollection,[DATABASE]);;ClearCollect(DataCollection;GroupBy(FullDataCollection;[Value];[OtherColumns];"ValueStorage"))

    I am assuming that Value and OtherColumns refer to the name of columns in the Datasource.

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • jprojas Profile Picture
    13 on at

    It didn't work.

     

    Thanks for the help, I will just have to make the changes on the SQL side.

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @jprojas 

     

    Were you able to resolve the issue?

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Verified answer
    jprojas Profile Picture
    13 on at

    Hi, the issue was not resolved, I had to change the method in which I was obtaining the information from SQL. Thanks for the assist.

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 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard