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 / What is needed to find...
Power Automate
Suggested Answer

What is needed to find the first row in an Excel with an empty value in a specific column?

(0) ShareShare
ReportReport
Posted on by 2
I am sorry for the very basic question, but I have been spending way too many hours trying to solve this.

I have an excel file with a table in which I have a column "Campaign owner" that has values up to a certain point, while another column "Form URL" has always values.

I would like to get the Form URL from the first row in the table that has an empty Campaign owner cell and send it to Teams.
 
This is what my intended flow looks like.

 
 
The failing action is Compose, but the problem lies with Filter Array where the condition is set as:



or as: 

 
This returns always an empty array, which is of course not readable by the Compose.
I have tried putting 'null' and null after the comma, to no avail.
 
The only outside factor I can imagine is the amount of rows to be considered, which is over 1000 by now, but I don't believe that should be a factor.

Asking both Copilot AND ChatGPT have been as efficient as clapping with one hand in this regard.

Can you please guide me through it and please bear with someone who doesn't know the syntax?
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,978 Moderator on at
     
     
    Here is what you need
     
    In your Filter
    In my example i have a table with 2 columns
    Column1 has nulls (blanks) aka empty and Column2 always has data
    Now one thing you are missing is explaining your Sort, to make sure that the first row actually IS the first row and they are in the order you need them in
     
     
    Now in my Filter array I have to use the empty check NOT null etc.
     
    so in mine it is exactly this
     
    empty(item()?['Column1'])
     
    So you would need to use item()?['YourColumnNameHere']
     
    Now, remember you have multiple rows so now I have to grab the correct one is either using first or [0] as the index
    so in my filter I would get 2 rows back
     
    To get the first Column2 value I put in
    body('Filter_array')?[0]?['Column2']
     
    where 0 is the index of the first row
     
    And bingo I get row 1 of the 2 I was filtered
     

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey
     
  • FB-21100732-0 Profile Picture
    2 on at
    That runs, but the output of the Filter array block is an empty body array.
     
    The block is set up in the following way:

     
     
    Also, sorry about the Sort detail missing: you can consider the table sorted by the 'Campaign owner' field.

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 959

#2
Valantis Profile Picture

Valantis 872

#3
Haque Profile Picture

Haque 589

Last 30 days Overall leaderboard