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 / How to add multiple Lo...
Power Apps
Answered

How to add multiple LookUp's on a Fill of a button

(0) ShareShare
ReportReport
Posted on by 42

Hi,

 

How would you add more LookUp's for the Fill of a button?

 

This is what I have currently and I'm receiving an errors on the ";" in between the LookUps:

sean8397_0-1682682969274.png

 

This is the picture of the App OnStart:

sean8397_1-1682683081273.png

 

Please help if you can.

 

Thank you!

 

Categories:
  • Anchov Profile Picture
    1,986 on at

    You first screen shot is too small to see, can you repost it larger?

  • sean8397 Profile Picture
    42 on at
    Capture.PNG
  • Verified answer
    Anchov Profile Picture
    1,986 on at

    The fill property can only accept a Color value.  To change the the color, you will need to use a Switch function  or a If condition. 
    https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-if

    In this case, I would probably use a Switch function. Example: 

     

     

    Switch(Lookup(Machines, 'SWO Number' = "1043" && IsActice = true).'Machine Status'.Value, "Down", Color.Red, "Idle", Color.Yellow, "Running", Color.Green, Color.LightGrey)

     

     

    You may need to edit Formula so it makes sense in your app.


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

    Cheers!
    Rick Hurt

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard