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 / Approval flow based on...
Power Automate
Answered

Approval flow based on number of selected dates in a particular month

(0) ShareShare
ReportReport
Posted on by 25

Hi,
I am new to Power Automate. I have a multiline Of text column in a sharepoint list which stores dates(Converted to strings) in this format "09/03/2023; 23/03/2023; 30/03/2023". I want to setup a condition which will route the flow to a different approver if more than 3 dates in a particular calendar month is contained in the multi line of text column.

Example

14/03/2023; 17/03/2023; 21/03/2023; 28/03/2023; 04/04/2023; 11/04/2023; 18/05/2023

The dates above are values of the multiline column, since the dates in March are more than 3, I want my flow to take a different approval route. How do I achieve this please?

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @ElectroWiz ,

     

    I have made a flow for your reference:

    vjefferni_2-1678428872493.png

    vjefferni_1-1678428834392.png

    vjefferni_0-1678428784354.png

     

    Related expressions:

    split(outputs('Compose'),'; ')
    int(formatDateTime(parseDateTime(items('Apply_to_each'),'de-DE','dd/MM/yyyy'),'MMyyyy'))
    union(variables('Months'),variables('Months'))
    @equals(item(), items('Apply_to_each_2')) 
    length(body('Filter_array'))

     

    The logic is:

    1. Get MMyyyy format month values from those dates.

    2. Use union to get the distinguish values from the Months array, filter months by each value.

    3. Count the rows of duplicate values in months array and if it's more than 3, there are more than 3 same month values and do what you want in true branch, otherwise in false branch.

     

    Best regards,

  • ElectroWiz Profile Picture
    25 on at

    @v-jefferni Thank you so much it works but i forgot to mention that occassionaly, that column would have to be blank so i got this error when i tried testing that option

    ElectroWiz_0-1678447452689.png

    How do i handle this please?

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @ElectroWiz ,

     

    In that case you can use a Condition control to check the column value first, if it isn't blank actions are all mentioned, but when it's blank do something else.

     

    Best regards,

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 58

#2
David_MA Profile Picture

David_MA 53 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 36 Most Valuable Professional

Last 30 days Overall leaderboard