cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
jprojas
Level: Powered On

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
jprojas
Level: Powered On

Re: GroupBy returning blank columns on SQL connection

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
Dual Super User

Re: GroupBy returning blank columns on SQL connection

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
Level: Powered On

Re: GroupBy returning blank columns on SQL connection

It didn't work.

 

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

Dual Super User
Dual Super User

Re: GroupBy returning blank columns on SQL connection

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!

jprojas
Level: Powered On

Re: GroupBy returning blank columns on SQL connection

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
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

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