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 / Dynamic design of the ...
Power Apps
Unanswered

Dynamic design of the position of the labels

(0) ShareShare
ReportReport
Posted on by 171

I have a list box with four items. As soon as an item is selected, it is displayed in one of the four labels in the gallery. The problem is that the positions of the labels are fixed at the X-positions 0, 150, 300 and 400. This means that if I have only selected the fourth item, it is on 400 and the rest is hidden and empty. I would like that no matter which item I target, it lands first on 0 and every further item is added behind. Unfortunately I do not know how. Do you have any ideas or solutions?

Categories:
I have the same question (0)
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @alt88 

    Please try the following. This method does not require moving the Labels. In the Text property of the Labels place the following

    Label1: If(CountRows(ComboBox1.SelectedItems)>0, Index(ComboBox1.SelectedItems,1).Value)

    Label2: If(CountRows(ComboBox1.SelectedItems)>1, Index(ComboBox1.SelectedItems,2).Value)

    Label3: If(CountRows(ComboBox1.SelectedItems)>2, Index(ComboBox1.SelectedItems,3).Value)

    Label4: If(CountRows(ComboBox1.SelectedItems)>3, Index(ComboBox1.SelectedItems,4).Value)

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

  • alt88 Profile Picture
    171 on at

    Unfortunately, that doesn't work. Clicking on an item in the listbox triggers the following:

    "ID Auftrag" in Concat (ListBox2.SelectedItemsText, Value)

     So that ThisItem.'ID Auftrag' is displayed there. With your variant, I only get the items displayed that are in the list box as items. I apologise for the confusion.

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

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard