cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Alnng0
Frequent Visitor

List row present in Table, Filter Query to just show the last 6 rows in Excel SpreadSheet

Is there a way when using List row present in Table to just show the last 6 rows in the Excel Spreadsheet?

 

Currently the table is showing every row on the spreadsheet and I just want the last 6.

 

Thank you,

1 ACCEPTED SOLUTION

Accepted Solutions
ChristianAbata
Community Champion
Community Champion

Hi @Alnng0  you can try this.

Valor 1
Valor 2
Valor 3
Valor 4
Valor 5
Valor 6
Valor 7
Valor 8
Valor 9
Valor 10

For my example I use 2 compose the first one get the lenght of the rows in you excel table.

 

 

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

 

 

 Then in a second compose I sub the length minus 6

 

 

sub(outputs('Compose'),6)

 

 

So I get 4, then I consult again the excel rows from the same excel table but filtering 4 rows that was my last compose result.

 ExcelLast6.PNG

And this is the result. A value starting in 5, so the last 6.

result.PNG

 



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

View solution in original post

4 REPLIES 4
RobElliott
Super User
Super User

@Alnng0 there's no way to show just the last 6 rows in the table.

Rob
Los Gallardos
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

ChristianAbata
Community Champion
Community Champion

Hi @Alnng0  you can try this.

Valor 1
Valor 2
Valor 3
Valor 4
Valor 5
Valor 6
Valor 7
Valor 8
Valor 9
Valor 10

For my example I use 2 compose the first one get the lenght of the rows in you excel table.

 

 

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

 

 

 Then in a second compose I sub the length minus 6

 

 

sub(outputs('Compose'),6)

 

 

So I get 4, then I consult again the excel rows from the same excel table but filtering 4 rows that was my last compose result.

 ExcelLast6.PNG

And this is the result. A value starting in 5, so the last 6.

result.PNG

 



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

Thanks this works!

@Alnng0  excellent please don't forget to mark as an answer to help others.



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,817)