cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jprojas
Frequent Visitor

GroupBy returning blank columns on SQL connection

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

4 REPLIES 4

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!

It didn't work.

 

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

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!

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.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (4,896)