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 / Use label for multiple...
Power Apps
Answered

Use label for multiple galleries

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a screen that contains details (labels) from a selected gallery item, AppListGallery. The AppListGallery's datasource is a SP list named 'Application Master List'. The lables on the detail screen currently have the following formula:

 

AppListGallery.Selected.Title

 

I have another gallery that uses a SP list, Pinned Applications, and links to the AppListGallery by Title. I want to be able to use the same screen and lables for both galleries, using the 'Application Master List' datasource, but don't know how to modify the lable formula to include multiple galleries.

Categories:
I have the same question (0)
  • Verified answer
    SoPatt Profile Picture
    Microsoft Employee on at

    Do you mean that you want the data from the screen to depend on which gallery the user used to get to the screen?

    One way to do it is to set a variable in the "OnSelect" of the gallery, and then use that variable to determine what to do in the screen.

     

    So if your OnSelect for the galleries were like this:

         Navigate(Screen1,ScreenTransition.None,{UseAppListGallery:true})

         Navigate(Screen1,ScreenTransition.None,{UseAppListGallery:false})

    Then in your label could be like this:
        If(UseAppListGallery,AppListGallery.Selected.Title,OtherGallery.Selected.Title)

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @sopatte 

     

    Thanks for the help! I was able to get this to work, but had to modifiy the label formula to:

     

     If(UseAppListGallery = false ,AppListGallery.Selected.Title,OtherGallery.Selected.Title)

    OnSelect for 'OtherGallery' is: 

     

    Navigate(Screen1,ScreenTransition.None,{UseAppListGallery:true})

    And the OnSelect for 'AppListGallery' is:

     

    Navigate(Screen1,ScreenTransition.None,{UseAppListGallery:false})

     

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 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard