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 Radio Button value...
Power Apps
Answered

Use Radio Button value as an input for the LookUp function

(0) ShareShare
ReportReport
Posted on by 16

Hi,

 

I am trying to use the value from a radio button, as an input (specifically the column variable) within the LookUp function (inside a label). Would anyone be able to provide any guidance? 

 

Context: I am building a simple test app that shows price for a car. Enter the Brand, Model, and select between Base or Full Package and the label will display a price imported from a linked excel sheet. It works fine, except the label needs to consider either "Base" or "Full package" from the radio button. The code for the label is: LookUp(Table1,Model= Dropdown_Model.Selected.Model,'Full Package')

 

The issue is with the final variable 'Full Package', where I would prefer to keep something like: Text(Radio_Package.Selected.Value). But this just returns "Base" or "Full Package" as the final result in the label box. 

Soham567_0-1645559189614.png

 

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Soham567 

    You would do this based on the radio selection in your formula:

    With(LookUp(Table1,Model= Dropdown_Model.Selected.Model),
     Switch(Radio_Package.Selected.Value,
     "Full Package", 'Full Package',
     "Base", Base
     )
    )

     

    I hope this is helpful for you.

  • Soham567 Profile Picture
    16 on at

    It works, Thanks!

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

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard