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 / How can I perform a Po...
Power Automate
Unanswered

How can I perform a Power Automate filter query on a Excel calculated column.

(0) ShareShare
ReportReport
Posted on by 4

Hi Experts,

 

I am working on a Power Automate flow to filter rows in an Excel file based on today's date, using the From Date and To Date columns formatted as dd/MM/yyyy. Despite following the necessary steps, my flow is not correctly filtering the data, and it retrieves rows that do not match the criteria. Here are the details.

 

I am configuring a Power Automate flow to filter rows in an Excel file based on the "Absent" column, which is a calculated column. The goal is to process only those rows where the "Absent" column is marked as "Yes".

I need help to ensure my flow correctly filters rows where the "Absent" column is 'Yes' and excludes rows where the "Absent" column is 'No'. If there are any considerations for handling calculated columns in Power Automate, please advise on the best approach.

Thanks

Categories:
I have the same question (0)
  • Anil_g Profile Picture
    668 Moderator on at

    @kashi165 

     

    I hope youa re using list rows in table activity...that should be workign as expected with below query.

     

    Column6 eq 'Absent'

     

    I did create a formula in colum6 and check it if filtering as expected..Can you please try the same

     

    Anil_g_0-1718608539201.png

     

    Output

    Anil_g_1-1718608563832.png

     

     

    cheers

  • v-yetonggu-msft Profile Picture
    on at

    Hi @kashi165 ,

    Please check this test:

    vyetonggumsft_0-1718609279378.png

    @and(greaterOrEquals(utcNow('yyyy-MM-dd'), item()?['From Date']),lessOrEquals(utcNow('yyyy-MM-dd'), item()?['To Date']))

    Best Regards,

    Sunshine Gu

  • kashi165 Profile Picture
    4 on at

    Actually, i have tried as per above but i am not able to get the right result, 

    I have attached my output result and original file.

     

    Screenshot 2024-06-18 091159.png
    Screenshot 2024-06-18 091108.png
  • kashi165 Profile Picture
    4 on at

    I have attached the excel file, Also the Output of flow which is not accurate. 

     

    Filter Array: @And(greaterOrEquals(utcNow('yyyy-MM-dd'), item()?['From Date']), lessOrEquals(utcNow('yyyy-MM-dd'), item()?['To Date']))

    The result i am getting which is not sense to me. 

     

    Array INPUT:

    [
      {
        "@odata.etag""",
        "ItemInternalId""3d73f731-85f5-49f0-97c7-108440753244",
        "Id""40",
        "Start time""2024-06-17T13:16:53.000Z",
        "Completion time""2024-06-17T13:17:11.000Z",
        "Email""anonymous",
        "Employee Full Name""Test1",
        "Type of Absence""Sick Leave",
        "Reason for Unplanned Absence""",
        "From Date""2024-06-17T00:00:00.000Z",
        "To Date""2024-06-17T00:00:00.000Z",
        "Will Medical Certificate be Provided""",
        "Need a Call Back From Production Manager""No",
        "Mobile Number""",
        "Absent""Yes",
        "Date""2024-06-17T00:00:00.000Z"
      },
      {
        "@odata.etag""",
        "ItemInternalId""2eb6e6ae-27f2-4ec6-971c-4b52abe141a2",
        "Id""42",
        "Start time""2024-06-17T13:18:22.000Z",
        "Completion time""2024-06-17T13:18:42.000Z",
        "Email""anonymous",
        "Employee Full Name""Test 3",
        "Type of Absence""Sick Leave",
        "Reason for Unplanned Absence""",
        "From Date""2024-06-16T00:00:00.000Z",
        "To Date""2024-06-18T00:00:00.000Z",
        "Will Medical Certificate be Provided""Yes",
        "Need a Call Back From Production Manager""No",
        "Mobile Number""",
        "Absent""Yes",
        "Date""2024-06-17T00:00:00.000Z"
      },
      {
        "@odata.etag""",
        "ItemInternalId""bcaaa244-2306-433f-ba46-b8f35c15f387",
        "Id""43",
        "Start time""2024-06-18T08:53:57.000Z",
        "Completion time""2024-06-18T08:54:35.000Z",
        "Email""anonymous",
        "Employee Full Name""Test 4",
        "Type of Absence""Others",
        "Reason for Unplanned Absence""Car Break down",
        "From Date""2024-06-17T00:00:00.000Z",
        "To Date""2024-06-19T00:00:00.000Z",
        "Will Medical Certificate be Provided""",
        "Need a Call Back From Production Manager""No",
        "Mobile Number""",
        "Absent""Yes",
        "Date""2024-06-17T00:00:00.000Z"
      },
      {
        "@odata.etag""",
        "ItemInternalId""83e1c8e9-34e1-4730-aa75-fe5854d631b4",
        "Id""44",
        "Start time""2024-06-18T08:55:46.000Z",
        "Completion time""2024-06-18T08:56:05.000Z",
        "Email""anonymous",
        "Employee Full Name""Test 5",
        "Type of Absence""Carer's Leave",
        "Reason for Unplanned Absence""",
        "From Date""2024-06-17T00:00:00.000Z",
        "To Date""2024-06-17T00:00:00.000Z",
        "Will Medical Certificate be Provided""Yes",
        "Need a Call Back From Production Manager""No",
        "Mobile Number""",
        "Absent""Yes",
        "Date""2024-06-17T00:00:00.000Z"
      },
      {
        "@odata.etag""",
        "ItemInternalId""6bd85cb5-3a6c-4120-be14-067d25e34d06",
        "Id""45",
        "Start time""2024-06-18T08:56:07.000Z",
        "Completion time""2024-06-18T08:56:26.000Z",
        "Email""anonymous",
        "Employee Full Name""Test 6",
        "Type of Absence""Sick Leave",
        "Reason for Unplanned Absence""",
        "From Date""2024-06-17T00:00:00.000Z",
        "To Date""2024-06-19T00:00:00.000Z",
        "Will Medical Certificate be Provided""Yes",
        "Need a Call Back From Production Manager""No",
        "Mobile Number""",
        "Absent""Yes",
        "Date""2024-06-17T00:00:00.000Z"
      },
      {
        "@odata.etag""",
        "ItemInternalId""06cf466e-9220-4484-b8a3-37f66461c96f",
        "Id""46",
        "Start time""2024-06-18T08:56:28.000Z",
        "Completion time""2024-06-18T08:57:23.000Z",
        "Email""anonymous",
        "Employee Full Name""Test 7",
        "Type of Absence""Sick Leave",
        "Reason for Unplanned Absence""",
        "From Date""2024-06-17T00:00:00.000Z",
        "To Date""2024-06-17T00:00:00.000Z",
        "Will Medical Certificate be Provided""NO",
        "Need a Call Back From Production Manager""No",
        "Mobile Number""",
        "Absent""Yes",
        "Date""2024-06-17T00:00:00.000Z"
      }
    ]
     
    OUTPUT:
    [
      {
        "@odata.etag""",
        "ItemInternalId""2eb6e6ae-27f2-4ec6-971c-4b52abe141a2",
        "Id""42",
        "Start time""2024-06-17T13:18:22.000Z",
        "Completion time""2024-06-17T13:18:42.000Z",
        "Email""anonymous",
        "Employee Full Name""Test 3",
        "Type of Absence""Sick Leave",
        "Reason for Unplanned Absence""",
        "From Date""2024-06-16T00:00:00.000Z",
        "To Date""2024-06-18T00:00:00.000Z",
        "Will Medical Certificate be Provided""Yes",
        "Need a Call Back From Production Manager""No",
        "Mobile Number""",
        "Absent""Yes",
        "Date""2024-06-17T00:00:00.000Z"
    Screenshot 2024-06-18 091159.png
    Screenshot 2024-06-18 093415.png
    Screenshot 2024-06-18 091159.png

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 323 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 183 Most Valuable Professional

Last 30 days Overall leaderboard