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 / Power Automate Flow - ...
Power Automate
Answered

Power Automate Flow - Dataverse for Teams - Filter Rows

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I created an app within a Team in MSTEAMS and added dataverse tables.  I am trying to figure out how to make the flow only return items that have an End Date within the current week, but cannot figure it out.

 

john3j_0-1660234877558.png

 

If anyone could help me it would be greatly appreciated!

 

Respectfully,

John Strange

Categories:
  • Verified answer
    v-peijunz-msft Profile Picture
    Microsoft Employee on at

    Hi @john3j,

     

    Based on your description, I have made a simple test for your reference.

    1. Here is my Dataverse table called Highlights:

    vpeijunzmsft_0-1660718559992.png

    2. Here is my flow:

    formatDateTime(addDays(utcNow(),sub(1, dayOfWeek(utcNow()))),'yyyy-MM-dd')
    formatDateTime(addDays(outputs('Compose'),7),'yyyy-MM-dd')
    @and(greaterOrEquals(formatDateTime(convertTimeZone(item()?['crba2_enddate'], 'Pacific Standard Time', 'UTC'), 'yyyy-MM-dd'),outputs('Compose')), less(formatDateTime(convertTimeZone(item()?['crba2_enddate'], 'Pacific Standard Time', 'UTC'), 'yyyy-MM-dd'), outputs('Compose_2')))
    item()?['crba2_title']
    formatDateTime(convertTimeZone(item()?['crba2_startdate'], 'Pacific Standard Time', 'UTC'),'yyyy-MM-dd')
    formatDateTime(convertTimeZone(item()?['crba2_enddate'], 'Pacific Standard Time', 'UTC'),'yyyy-MM-dd')

    vpeijunzmsft_1-1660718559997.pngvpeijunzmsft_2-1660718559999.png

    vpeijunzmsft_3-1660718560002.png

    vpeijunzmsft_4-1660718560006.png

    3. Result Screenshot:

    vpeijunzmsft_5-1660718560009.png

    vpeijunzmsft_6-1660718560011.png

     

    Here are references of Dataverse tables time zone:

    https://docs.microsoft.com/en-us/power-apps/developer/data-platform/behavior-format-date-time-attribute

    https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11#time-zones
    https://www.fidelityfactory.com/blog/2021/4/1/troubleshooting-dataverse-model-driven-app-date-time-issues-sndn5

     

    Best regards,

    Sylvia

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard