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 / how to create a table ...
Power Apps
Answered

how to create a table of unique values? HELP

(0) ShareShare
ReportReport
Posted on by 3

hello,

im new in Powerapps.

I have a table that depends on some filters. But i need unique value (Id_Cita)

AaronArias_0-1663560455201.png


If the solution is a collection, how do I do it?
 thanks



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

    Hi @AaronArias,

    Do you want to collect all the Id_Cita from the filtered result?

     

    I think you could directly collect it by adding a button and set its OnSelect property as below:

    ClearCollect(colId_Cita,Filter(Data,<your condition>).Id_Cita)
  • AaronArias Profile Picture
    3 on at

    NO, I WANT THE TABLE TO SHOW ONLY THE UNIQUE VALUES. THE ID_CITA COLUMN IS REPEATED

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @AaronArias,

    If you want to just display unique Id_Cita with corresponding records, I think you could try the GroupBy() function, which will help you group by the Id_Cita column and have a nested table including all the records sharing the same Id_Cita .

    GroupBy(List,"Id_Cita","GroupId")

     However, the DataTable is different from the Gallery on grouped records displaying.

     

    The GroupBy() make your original data source changes like below:

    Id_Cita GroupId
    1298 [Table]
    9259 [Table]

    And the nested table expands with all the other column values, so if you want to display other column values, you should use AddColumns() to create a temporary column to display.

    vqiaqimsft_0-1663641530654.png

    You could not use the Concat() function on the original field to show the grouped field values because all the other column values are shaped into the GroupId group.

     

    To display other column values, you could set the Items property as below:

    AddColumns(GroupBy(List,"Id_Cita","GroupId"),"TitleNew",Concat(Filter(GroupId,Id_Cita=Id_Cita).Title,Title,","))

    vqiaqimsft_1-1663641976564.png

     

     

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard