Announcements
Hi,
In the pic below,I am trying to use switch function(2) based upon the selection made in (1)
Note:1 is a combo-box
2 is a label
The below pic shows the error
Please help!
Hi @freshyshreya ,
Could you please share the code. It seems there is something wrong in the code and it is returning table values to the label.
Hi @PriyankaGeethik ,
Sharing the code in the pic below.
Do you want to display the text in square brackets ?
If you want to print the values in text format you can use below formula and update according to your requirement.
Switch(ComboBox2.Selected.Value,"Finance",Concatenate("[","freshy","]"),.....)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
No,I don't want to display the text in square brackets.It should be normal text like freshy,rajesh,aravind etc
In that case please try below formula because powerapps consider [ ] for array thats why it is resulting in records value.
Switch(ComboBox2.Selected.Value,"Finance","freshy",.....)
The solution 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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Vish WR 1,074
Valantis 639
11manish 606