Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Get equal values from inside an array

(0) ShareShare
ReportReport
Posted on by 257

Hey guys.

 

So I have a variable array, named "Dias"with several values (dates - Name)

2.PNG

 

1.PNG

 

My question, Is there any way to get equal values from this array?

In this case I want to get the 2 equal dates "2022-03-21"

 

(Dates are not formated, I know)

 

Thanks in advance.

  • fchopo Profile Picture
    7,968 Super User 2025 Season 1 on at
    Re: Get equal values from inside an array

    Hi @JoaoSantos489 

    You should do the following steps:

    1) Initialize a variable to store dates (in my case, "Users").

    2) Initialize a variable to store dates (in my case, "Users") and number of items.

    3) Get Items from SharePoint list.

    managers-1.png

     

    4) For each item in the SharePoint list

    5) Store the items in Users array.

    6) For each distinct user (using the union expression in the apply_to_each_2).

    7) Get items with that Title (using filter query).

    😎 Count the number of items and store it in the results table.

    managers-2.png

     

    So at the end of the flow you will have a table with number of items for each Title (in my case).

    Hope this helps!

    Ferran

     

  • JoaoSantos489 Profile Picture
    257 on at
    Re: Get equal values from inside an array

    Hey @fchopo thanks for your answer.

     

    I understand the union function, but It´s the exactly opposite of it that I want.

    I want to see the duplicated values

  • fchopo Profile Picture
    7,968 Super User 2025 Season 1 on at
    Re: Get equal values from inside an array

    Hi @JoaoSantos489 

    Using the union function you can remove equal values (distinct function). Here you have an excellent explanation: Get Distinct Records using the union expression in Power Automate - That API Guy

    Can you apply these to an array with only the dates and after that append the title column?

    Hope it helps!

    Ferran

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1