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 / 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
    Microsoft Employee 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
    Microsoft Employee 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard