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
Super User
Super User

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
Super User
Super User

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
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

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

Users online (2,541)