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 / Multiply the value of ...
Power Apps
Answered

Multiply the value of two dropdown fields in PowerApps

(0) ShareShare
ReportReport
Posted on by 519

Hello,

I have two dropdown fields in PowerApps each pulling from a SharePoint list.  Both dropdowns store values 1-5 and I want if a user selects a value in dropdown 1 and another in dropdown 2, that a third field (text field) shows those values multiplied - so if a user selects 3 and then 5, the value of the third field will be 15.  

Further to this, I would like for that field to be color coded such that if a value is between 1and 6, its green, if its 8-12 its yellow, 15-16 is orange and 20-25 is Red.  These are the only combinations.  Any feedback on how to achieve this appreciated.

Categories:
  • BlessedCobba Profile Picture
    459 Super User 2024 Season 1 on at

    Something like this for the text label

     

     

    Text(Dropdown1.Selected.Value*Dropdown2.Selected.Value)

     

     

    Conditional color formatting i've never tried but it would be some form of if statement in the colour property of the field (Updated, Thanks Asan)

     

    If( Value(TextLabel.text) <= 6, Color, Value(TextLabel.text) <= 12, Color, Value(TextLabel.text) <= 16, Color, Value(TextLabel.text) <= 25, Color)

     

     

  • AsanKani Profile Picture
    710 on at

    @BlessedCobba .. You are said right.. but one small modification required in your formula..

    This is right.. 

    Text(Dropdown1.Selected.Value*Dropdown2.Selected.Value)

    @joshieboy  Need to modified below formula then it will be work.. what every your required value & color you can choose... 

    If( Value(TextLabel.Text) <= 6, Color, Value(TextLabel.Text) <= 12, Color, Value(TextLabel.Text) <= 16, Color, Value(TextLabel.Text) <= 25, Color)

    Did this post solve your problem? Please click Accept as Solution so that others may find it more quickly.
    If you liked my response, please give it a Thumbs Up.
     

  • joshieboy Profile Picture
    519 on at

    Thank you very much for the prompt feedback.  I did the first piece with the multiplication and it works well.  I just had to change .Value to .Result.  For the color coding, what property am I setting this on, as the formula for multiplication is set on Default.  

     

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

    Depends on which part you wish to colour but if its the background then should be the Fill property

  • joshieboy Profile Picture
    519 on at

    Wow.  This works beautifully.  Thanks again.

  • AsanKani Profile Picture
    710 on at

    @joshieboy  Property Name : Color in which tool used like Label or textinput box used formulae...  simply color used text like Red, Green, Blue or you can use RTGB(255,255,0,1) like...

     

      

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 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard