cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
drako
Resolver I
Resolver I

Can get Aggreagte to work in SQL connector

Hi,

   I'm using the SLQ conector. My query works great wihtout issues but when I try to use the aggregate option the flow crashes. This is whta I have set up:

 

drako_0-1613153502574.png

 

   The aggregate is: aggregate(Minutes with sum as TotalMinutes)

   Minutes is a SQL field as decimal thta I want to sum. I have not been able to egt this to work...any ideas? Also is their a way to GroupBy?

 

Kind Regards

 

 

3 REPLIES 3
abm
Super User
Super User

Hi @drako 

 

I have tested this with my local sql server and Azure SQL server. Both did worked for me. Most likely the error is related to your filter query.

 

 

image.png



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials

Hi @abm , I had thought of this also...if I remove the aggregate the query works...so the filter is fine... could it be that these don't work together...you can only an aggregate or a filter?

Hi @drako 

 

Yes looks like currently there are no support for aggregate against filter conditions. Your other option is try this directly under as a SQL query and expose that as a sql stored procedure. So when you calling from Power Automate you can pass those filter query parameter values to SQL SP.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,310)