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

Community site session details

Session Id : VUbHp9FjwR3ezI/oww1vYT
Power Automate - Building Flows
Unanswered

Get equal values from inside an array

Like (0) ShareShare
ReportReport
Posted on 16 Mar 2022 12:46:25 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.

I have the same question (0)
  • fchopo Profile Picture
    7,972 Moderator on 16 Mar 2022 at 15:52:22
    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 16 Mar 2022 at 15:00:13
    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,972 Moderator on 16 Mar 2022 at 13:21:02
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete