cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Dual Super User II
Dual Super User II

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.

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Top Solution Authors
Top Kudoed Authors
Users online (106,219)