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

Dynamic Table Range in Excel Online "Create Table" node

Hi,

 

Every day, we save an Excel file on our Sharepoint environment and create an Excel Table in the file. 

The content of the Excel file is different every day. Different number of rows as well.

 

When I use the "Create Table" node from the Excel Online package, I need to specify the Table Range.

Every file contains columns A to column DN. But the rows are different. 

It tried the table Range "ASmiley Very HappyN" but when I do that, it creates a lot of empty rows at the end of the data table. So I think I have to specify the number of rows as well.

 

For example today I have 412 rows. So the table range is "A$1Smiley Very HappyN$412". 

 

My question is: Do I really need to specify the number of rows in the table range? and if so: How can I extract the number of rows from an Excel file?

 

Thanks!

 

Marco

4 REPLIES 4
Community Support Team
Community Support Team

Re: Dynamic Table Range in Excel Online "Create Table" node

Hi @MarcoS ,

 

You need to specify the number of rows in the table range and however, there is no any way to extract the number of rows from an Excel file currently.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Super User
Super User

Re: Dynamic Table Range in Excel Online "Create Table" node

Hi @MarcoS 

 

Yes, you need to set the range.

 

You can measure the rows with a expression inside a compose:

The expression is 

 

length(body('List_rows_present_in_a_table')?['value'])

 

You need to change the red text to your action name, like the print below:

image.png

Best Regards


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

Gustavo Moraes, o astronauta brasileiro do Flow!


MarcoS
Level: Powered On

Re: Dynamic Table Range in Excel Online "Create Table" node

Hi,

 

In your example you first use the node 'List rows present in a table' and then use a compose node to extract the number of rows. 

But in the node 'List rows present in table' you have to select the table inside the Excel file. But I don't have a table, because I first need the number of rows to create it.

 

Marco

Super User
Super User

Re: Dynamic Table Range in Excel Online "Create Table" node

Hi @MarcoS 

 

Sorry for my wrongly understood.

 

I think this article can help you:

 

https://veenstra.me.uk/2018/10/17/microsoft-flow-read-large-excel-files-within-seconds-without-creat...

 

Count on me for what you need


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

Gustavo Moraes, o astronauta brasileiro do Flow!


Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 303 members 4,555 guests
Please welcome our newest community members: