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 / Switch data in forms f...
Power Apps
Answered

Switch data in forms for user selection

(0) ShareShare
ReportReport
Posted on by

Hello all,

 

Here I meet a problem.

 

I insert the form in power apps and connect to the excel online raw data.

For a column named size, I hope the user can select between A3, A4, B4, B5, 8K, 16K and so on. But in my raw data, I only have sheet width and sheet length.

I have use the distinct function in items, that is, 

Distinct(Filter(Table2Data,Description=DataCardValue3.Selected.Value && 'GSM  '=DataCardValue4.Selected.Value),'Sheet width')
 
After applying the function above, the user can select between 297, 210,195 and so on.
So what I need is to switch 297, 210, 195 to A3, A4, 16K...
 
I tried to use the function in onselect, that is,
 
Switch(DataCardValue5.Selected.Value,
"297","A3",
"210","A4",
"420","A3",
"182","B5",
"195","16K",
"257","B4",
"270","8K",
"216","Letter Size")
 
But it seems not work.
 
Hope you can help me solve the problem.
Thanks!
Categories:
I have the same question (0)
  • v-mengmli-msft Profile Picture
    on at

    Hi @Yiqian ,

     

    Your current Switch returns a text, you should put it on control which is used to show paper size.

    If you are using drop down for paper size, please try this.

    Items of Dropdown.

    ["A3","A4","B5","16K","B4","8K","Letter Size"]

    Default of Dropdown.

    Switch(DataCardValue5.Selected.Value,
    "297","A3",
    "210","A4",
    "420","A3",
    "182","B5",
    "195","16K",
    "257","B4",
    "270","8K",
    "216","Letter Size")

     

     

    Best regards,

    Rimmon

  • YC-24070300-0 Profile Picture
    on at

    Hello,

     

    Thanks for your reply.

    But I still have one more question that where should I put this function in this dropdown list?

    Distinct(Filter(Table2Data,Description=DataCardValue3.Selected.Value && 'GSM  '=DataCardValue4.Selected.Value),'Sheet width')

     

    Since I need to filter size first to make the choice more accurate, this may be somewhat difficult.

     

    Thanks!

  • v-mengmli-msft Profile Picture
    on at

    Hi @Yiqian ,

     

    Do you want to make the drop-down options more accurate?

    If so, it should be in Items property.

     

    Best regards,

    Rimmon

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