web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Group By and sum HTML ...
Power Automate
Unanswered

Group By and sum HTML Table from SQL data with Power Automate

(0) ShareShare
ReportReport
Posted on by

Hi everyone, 

 

I have looked for a solution for this but didnt' find it, so I hope you can help me.

 

AdminIT_UDIN_1-1658110455642.png

 

 

I get all rows from SQL on powerautomate and create a HTML Table and I need group and sum by the column 'descripcion' (My Powerautomate dont let use SQL query function because SQL Server is onpremise, only can use 'get all rows' function)

 

 

After getting all rows my HTML Table is like this:

AdminIT_UDIN_2-1658110467927.png

 

AdminIT_UDIN_0-1658110447485.png

As you can see, I could group by column 'descripcion' to get a table like this:

AdminIT_UDIN_3-1658110825904.png

and the final result I need with HTML format is the next table (it doesn't care if the grand total is not calculated):

AdminIT_UDIN_4-1658110846114.png

 

I just could get the Total of all data (25.502.500 for column 'base' and 270.175 for column 'retenido')

How can I build a flow for getting those subtotals for (Retencion, Impuesto and Tarifa ) having on count that the number of items 'descripcion' may be different, I mean, if my query to SQL is different the result may be 'Retencion', 'Impuesto', 'Tarifa' and Other item...or maybe only 'Retencion' and 'Impuesto'.

 

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at

    Hi! Did you ever find a Solution for this? I have the same Problem.

     

    Thanks!

    Max 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard