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 Platform Community / Forums / Power Automate / How to filter empty ro...
Power Automate
Answered

How to filter empty rows from an array?

(0) ShareShare
ReportReport
Posted on by 98

Hi guys! 😄

 

I have these lines that I drew from a .csv and they always come with these " " empty at the end, and this is breaking my flow. Does anyone know how to filter or remove them?

carudev_0-1616595302863.png

Thank u!

Categories:
I have the same question (0)
  • tom_riha Profile Picture
    10,187 Most Valuable Professional on at

    Hello @carudev ,

    if it's always exactly 1 empty item in the array at the end, I'd use the take(...) expression to take from the array only lenght-1 number of items.

    like this, but I'm not sure about the dynamic content format, you might need to replace it:
    take(outputs('Matriz_do_filtro'),sub(length(outputs('Matriz_do_filtro')),1))

     

  • Verified answer
    carudev Profile Picture
    98 on at

    HI guys!
    I found a very simple solution. I managed to solve it like this: using empty (item ()) is equal to false

    @equals(empty(item()), false)

    carudev_1-1617819093343.png

     

    Just look at the exits, It worked really well:

    carudev_0-1617818973010.png

    I hope this may help you guys, thanks! 😄

  • LoongWang Profile Picture
    on at

    what's the format for rows?

  • Fabio_Levy Profile Picture
    12 on at

    The element she used is called "Filter Array" / "Matriz do Filtro" (in PT-BR).

    It works quite well. Thanks!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard