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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Datatable

(0) ShareShare
ReportReport
Posted on by 29

Hello, 

Im extracting a data table from excel, i need to make a group by Customer ID, 
Couldnt mange to make new data tables (per CustomerID)

And i dont want to loop for each customer ID, 
Any tips.  

I have the same question (0)
  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    Make a group? What do you mean?

  • HazemSaleh Profile Picture
    29 on at

    I have query result, need to make gruopby CustomerID into samaller datatable that i can loop throw them.

  • VJR Profile Picture
    7,635 on at

    You can treat Excel sheet as a database table and fire a query on it. 

     

    Below query will only return a datatable for this particular customer Id

    Select * from [Sheet1$] where CustId = '123456'

     

    VJR_0-1668420736836.png

     

    Provider=Microsoft.ACE.OLEDB.12.0;Data Source="C:\Test\ExcelFileName.xlsx";Extended Properties="Excel 12.0;HDR=Yes;IMEX=1";
    

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Do you know a syntax to reference named Excel table instead of an entire sheet?

  • VJR Profile Picture
    7,635 on at

    Hi @Anonymous, I assume you are asking about the SQL syntax for a named Excel table. I don't think a direct Excel table name can be passed to the query. 

     

    But you can find out the last row and column and give a range as below.

    Select [SrNo] from [Sheet1$A1:D20] AS [Table1] where [SrNo] >= 5

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 258 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 198 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 136 Super User 2026 Season 2

Last 30 days Overall leaderboard