cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
OE_APerron
New Member

How to ignore blank Rows when using List Table Rows in Power Automate

Hello,

 

I have an Excel Online file saved in SharePoint that contains an Excel Table from which I'd like to List Rows and for Each item, Add a Row to another Table.

 

My first Table is refreshed periodically and never contains the same number of Rows, therefore I have a theoretical range set in my action "Create Excel Table" to make sure I'm not missing any lines:

 

OE_APerron_0-1595183768127.png

 

 

The problem it's that it creates a thousands of blanks rows that I'm not able to filter out when listing my Table Rows:

OE_APerron_1-1595183857243.png

 

length(body('Lister_les_lignes_présentes_dans_un_tableau')?['value'])
 
I've tried various posted solutions (Filter Array, set Variable, OData Filters) wihtout any success neither.
 
As anyone succeeded, in a similar Flow with Excel online Connectors?
 
AP 
1 ACCEPTED SOLUTION

Accepted Solutions
js-dattics
Resolver I
Resolver I

Salut @OE_APerron 

I don't like working with Excel and Power Automate, I prefer CDS or Sharepoint Lists.

However, you could filter your Excel action as follows:

js-dattics_0-1595185059368.png

"Header A" should be any of your table's headers.

Try it and keep me posted.

 

Salut et bon courage de la Colombie.

View solution in original post

2 REPLIES 2
js-dattics
Resolver I
Resolver I

Salut @OE_APerron 

I don't like working with Excel and Power Automate, I prefer CDS or Sharepoint Lists.

However, you could filter your Excel action as follows:

js-dattics_0-1595185059368.png

"Header A" should be any of your table's headers.

Try it and keep me posted.

 

Salut et bon courage de la Colombie.

Thanks @js-dattics ,

I tried the Filter Array yesterday and it failed, but with your reply I noticed what I was missing ! Thanks cause it works perfectly now and although it takes around an 45 min (due to apply to each for roughly 2000 rows), I'm able to move on to my next challenge 🙂

PS: I had failed to input proper Columns names in my Create Table action which was probably defaulting the names causing the Filter Array to fail (equivalent of not applying a filter):

OE_APerron_0-1595209679833.png

OE_APerron_1-1595209755681.png

 

Gracias desde Quebec, Canada,

Saludos,

AP

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (3,463)