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 / gallery and table in d...
Power Apps
Unanswered

gallery and table in dataverse

(0) ShareShare
ReportReport
Posted on by 1,032

hi everyone
I have a table with two columns testimage and image with records as in the screenshot. I want to have a gallery with 4 lines where I can display the image and the testimage without repetition; I tried to make distinct in the gallery item as follows:
Distinct(testimage;testimage) but when I want to add the image it gives me error.

How can I resolve this?

Capture d’écran 2022-12-19 à 21.11.33.png
Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @gikido 

    Gallery Items: GroupBy(yourtable,"TestImage","Image")

  • gikido Profile Picture
    1,032 on at

    @Drrickrypthank you

    but still not working

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    From Power Apps, we can build a search feature by adding search text box, and a gallery control with the Items property set to the following formula:

    Search(vwSearchIssue, txtSearchInput.Text, "IssueResponseDesc")

    To display these distinct values in a gallery control, we would call the GroupBy function to group the result by IssueID. We would set the Items property of our gallery control to this same formula.

    GroupBy(Search(vwSearchIssue, txtSearchInput.Text, "IssueResponseDesc"),
    "IssueID",
    "Data"
    )

    This effectively produces a result that looks like this.

     

    b0d61d92-2661-4c82-a2f1-a443e776beb3.png

    Each record in this result includes an IssueID field and a child table called 'Data' that contains all the rows that match the corresponding issue ID.

    From the item template of the gallery, we can show the distinct 'Issue Description', and 'Target Close Datetime' fields by looking up the first row in the data child table. The syntax to return the IssueDescription would look like this:

    First(ThisItem.Data).IssueDescription
    Likewise, this would return the 'Target Close Datetime' field.
    First(ThisItem.Data).TargetCloseDateTime

    As the screenshot beneath shows, we can use this technique to configure our gallery control to show just the distinct IssueID, 'Issue Description', and 'Target Close Datetime' fields that relate to the search.4cc40abd-8190-4930-abd6-086d8946639e.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 416 Most Valuable Professional

#2
11manish Profile Picture

11manish 205 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard