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 / Convert text to record
Power Apps
Unanswered

Convert text to record

(0) ShareShare
ReportReport
Posted on by 41

Hello everyone,

 

I have a power apps application connected to a Microsoft List, this list contains collones choices with a city name as title.

In my application I have a listBox with the names of these cities, a dropdownbox with the available choices and a gallery.

I want to filter my list according to the selected city and the selected choice but I don't know how to convert ListBox1.Selected into records to get the value and compare it with dropdownbox.SelectedText.Value:

 

Exemple for Adrian city:

SortByColumns(Filter([@TestEmilien], Adrian.Value=Dropdown1.SelectedText.Value), "Title", If(SortDescending1, Descending, Ascending))

 

Categories:
I have the same question (0)
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Try this:

    SortByColumns(Filter([@TestEmilien], Adrian.Value=Dropdown1.Selected.Value), "Title", If(SortDescending1, Descending, Ascending))

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,
    Gonçalo Nogueira

    Check my LinkedIn!

    Check my User Group (pt-PT)!

    Last Post on Community

  • Yuna-Evita Profile Picture
    41 on at

    Hello Nogueira, 

     

    Sorry but did you change somethings ?

    Adrian is a city I take for example, it's a column name, I need to put somethings like ListBox1.Selected (but that return me text and I need record)

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    If you have only th "City"?

    Like this:

     

    SortByColumns(Filter([@TestEmilien], City =Dropdown1.SelectedText.Value), "Title", If(SortDescending1, Descending, Ascending))

     

    You can also try this:

    SortByColumns(Filter([@TestEmilien], Text(City) =Dropdown1.SelectedText.Value), "Title", If(SortDescending1, Descending, Ascending))

     

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,
    Gonçalo Nogueira

    Check my LinkedIn!

    Check my User Group (pt-PT)!

    Last Post on Community

  • Yuna-Evita Profile Picture
    41 on at

    I don't need to convert"City" in text, it's a text and I need to convert in record.

    In my list a city correspond to a column and in my applications I have a listbox with the name of each cities.

    I want to take the selected item from my listbox convert it into record (column from my list) and compare the value with my dropdown to filter them

  • Verified answer
    Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    https://powerusers.microsoft.com/t5/Building-Power-Apps/How-to-convert-a-Text-Type-to-Record-Type/td-p/777391

     

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Convert-Text-to-Record/td-p/487169

     

    This might solve your problem..

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,
    Gonçalo Nogueira

    Check my LinkedIn!

    Check my User Group (pt-PT)!

    Last Post on Community

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard