web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Indication gallery fro...
Power Apps
Answered

Indication gallery from gallery

(0) ShareShare
ReportReport
Posted on by 38

I am developing a form for accounting for used material on construction sites. Now I am faced with the problem of displaying problematic positions. If Label2 is greater than label1, then the bell should light up red, if less, then green, but the bell always lights up red. I tried to write formula:

If(Value(label2.Text) > Value(Label1.Text); Red; Green),

but it always lights up red. Any ideas?

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

    Hi @mhuhka 

     

    Your formula looks good.

    From the screenshot, 80 is Label 2 and 50 is Label 1?. If this is true then works well. Can you check the label name for each? and Can you show me where it's not working?

  • mhuhka Profile Picture
    38 on at

    Hi @StalinPonnusamy 

    My formula only works for the first entry from the gallery. The screenshot (check attachements) shows the situation with two positions. On one - the rule is fulfilled, on the second - it is not. I am trying to get a red indicator if at least one of the positions for writing is not executed.

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @mhuhka 

     

    Are you using a gallery or multiple forms on that screen? 

     

    If you use multiple forms then you will be having multiple controls. We need to write the same logic for each form.

  • mhuhka Profile Picture
    38 on at

    Hi @StalinPonnusamy 

     

    I am using two galleries based on tables in OneDrive. The gallery2 sorts the material from construction sites in the gallery1.

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Thanks, @mhuhka for the explanation. You have 2 or more items in gallery 2. The formula is overwriting one another. For example, In this case, 2nd time is overwriting the first one

     

     Label 1Label 2
    Item 180147
    Item 28050

     

    To solve this, you can sort the gallery2 to display label1 in descending order.

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @mhuhka 

     

    Please let us know if anything needs on your post. We can help with this.

     

    Please do not forget to give kudos if you find the suggestion helpful or Accept it as a solution if works fine to help other users to find it useful.

  • Verified answer
    mhuhka Profile Picture
    38 on at

    Hi @StalinPonnusamy 

    You are a great man!

     

    Sorting the Gallery didn't work. I thought about my problem for a long time, but as soon as you wrote, an idea came to my mind. I calculated the necessary formula without referring to the Gallery (Label1, Label2), I did it using a table on Onedrive and Filter function for ThisItem. And it worked! Thank you for trying to help!

  • Verified answer
    StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @mhuhka 

    That's great. Nice job.

     

    Please close the post so that it helps others.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard