web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Only with certain colu...
Power Automate
Suggested Answer

Only with certain columns will my if/then statement work

(0) ShareShare
ReportReport
Posted on by 2
I have an excel table of 24 qualifications. I have a flow that I want to email me once a week when someone's qual date is 30 days from expiration. In the excel Table, Names are in column A and then each Qualification has two columns Date Qualified and a QualNameExpDate. This works for the first 4 qualifications I have. Then it skips the next 5 and will work with the tenth one but none of the other ones. I have tried writing individual flows for each qualification but the ones that don't work in the main flow won't work in a standalone flow either. I have converted to range and reconverted to a table to ensure I'm using up to date table. 

recurrence,--Set to once a week 

initialize a string variable,--- Use this to track the names and qualifications that are due

Initialize and set a variable for today + 30 days, --- This is used in the if statement

Call  List Rows Present --Select my file and correct table

,For Each Loop-- To loop through the body of the table

Condition if [QualNameExpDate is less than or equal to today + 30 ],---
TRUE -- Append String Variable Name, Qualification,--False Blank---

Outside the loop Email myself with the String Variable as the body of my text.
Categories:
I have the same question (0)
  • Suggested answer
    Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
    Hi
     
    So you are saying that certain rows which should satisfy the condition - go to false section of condition ?
     
    Can you confirm that ?
     

    Thanks & Regards,
    Nived N

    Stay connected:
    LinkedIn | YouTube | Blogs

    Was this answer helpful?
    If yes, please mark it as the solution by selecting the checkbox in the discussion thread.
    Your feedback motivates me to keep contributing. Thank you!

  • lbendlin Profile Picture
    8,479 Super User 2025 Season 2 on at
     I have a flow that I want to email me once a week when someone's qual date is 30 days from expiration. 
     
    That's not the right sampling rate? You should check daily?
  • MG-28021817-0 Profile Picture
    2 on at
    It is not the sample rate that is my problem.
     
    In the condition statement if the condition is met then my string variable receives the person's name and which qualification it is that is 30 days from expiration. Under a False condition nothing happens and I get emailed a blank email. 
     
    The main problem that I have is this is a quick example 
     
    Name ForkliftExpDate AerialLiftExpDate FallProtectionExpDate
    Daffy Duck
    28Mar2025 1Apr2025 28Feb2025
    Bugs Bunny 28Mar2025 1Apr2025 5June2026
     
     
    I should return an email to myself that says
    Daffy Duck -- Forklift
    Daffy Duck -- Aerial Lift
    Daffy Duck -- Fall Protection
    Bugs Bunny -- Forklift
    Bugs Bunny --Aerial Lift
     
    What I get in my email:
    Daffy Duck --Forklift
    Daffy Duck --Fall Protection
    Bugs Bunny --Forklift
     
    For whatever reason the AerialLiftExpDate won't read even though I have copied the exact same thing for that condition. I have even gone as far as trying to write an individual flow for just that column of my table and it still won't work. I have used Filter Query to narrow it down to that specific column and it still won't work. This is over the entirety of my 24 qualification tracker.
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard