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 items from dat...
Power Apps
Answered

Gallery items from dataverse table but add an item manually

(0) ShareShare
ReportReport
Posted on by 7

Hi,

I want to get my items for a gallery from a dataverse table but manually add one item. How is this possible? 

My code to get the items from the table is:

 

Distinct(Filter(TableName;Formula);Formula)

 

Now I just want to add one item, for example "test"

 

I already tried:

 

Distinct(Filter(TableName;Formula);Formula) & "test"  

 

and I also tried:

 

Distinct(Filter(TableName;Formula);Formula) & ["test"]

 

But it did not work. Do you have any idea how to make it possible?

 

Thanks for your help!

Categories:
  • Verified answer
    realwillwright Profile Picture
    772 Moderator on at

    Hi @Joanna01234 

     

    how many rows will you be showing in your gallery? If the number of rows doesn't introduce delegation issues you can use ClearCollect and collect to add in the extra row, ClearCollect will get all the rows from Dataverse, collect will get your extra row.

    The TableColumns must match the name when using ClearCollect otherwise it will create new columns

    ClearCollect(colTable, Filter(Table, formula);
    Collect(colTable, {TableColumn1: "", TableColumn2: "", ...})

      

    -------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

  • Joanna01234 Profile Picture
    7 on at

    I don't need much rows (maximal 10), but I already tried with Collect and it did not work properly.

    I need to add the extra Item a lot of times and even if I could make it work somehow I would need a lot of collections.

    Is there another option?

  • realwillwright Profile Picture
    772 Moderator on at

    I can't think of another way. I have used this method in the past and it has worked

  • Joanna01234 Profile Picture
    7 on at

    Okay thanks for your answer!

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
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard