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 Apps / Concat and distinct
Power Apps
Answered

Concat and distinct

(0) ShareShare
ReportReport
Posted on by 100

I have nested gallery and I am trying to concat the value from nested gallery and displaying it in Parent gallery.

Concat is working fine, Need help to use distinct with the result.

Below are the formulas.

 

Parent Gallery  Item property:

GroupBy(SortByColumns(Filter('datasource1',Uke = Value(Ti_SumWeekNum.Text) ),"bk_timex"),"bk_date","GroupedbyVactype" )

Nestedgallery item property:

ThisItem.GroupedbyVactype

Text box default property:

Concat(ThisItem.GroupedbyVactype,Concatenate(Vaksinetype,","))

Result:

Moderna,Moderna,Moderna,Pfizer

 

Required result:

Moderna,Pfizer

 

Can someone help me to achieve this

 

Categories:
I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @PapithaSekar1,

    Based on the issue that you mentioned, do you want to display distinct values in the Text box?

    Could you please tell me that how you configure your nested gallery, does this duplicated value display in the Parent Gallery?

    I have a test on my side, pleas take a try as below.

    Concat(
     Distinct(
     Split(
     Concat(
     ThisItem.GroupedbyVactype,
     Concatenate(
     Vaksinetype,
     ","
     )
     ),
     ","
     ),
     Result
     ),
     Result,
     ","
    )

    Regards,

    Qi

     

     

  • PapithaSekar1 Profile Picture
    100 on at

    Thank you. I worked 

  • Neethu Profile Picture
    8 on at

    In my gallery I have a field ThisItem.HType which contains values seperated by comma like a,b,a,b,c,b,c,a. I created a variable "harddup" and set it as the default of a textbox. But I want to take only the distinct values from this and show the distinct values(a,b,c) in the  textbox . Could you please help me get this done

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard