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 Apps
Answered

radio buttons

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello.

 

I'm creating a apps for case management.

 

I would like to design the gallery data to be Filtered by the selected radio button.
And, I want to initialize the radio button selection status when the update button was pressed.
Do you know the way?

I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Could you please share a screenshot about your app's configuration?

    Do you want to filter your Gallery items based on the selected value within the Radio button control, and want to reset the Radio button when the Update button was pressed?

     

    I have made a test on my side, please take a try with the following workaround:6.JPG

    Set the Items proeprty of the Gallery to following:

    If(
    !IsBlank(Radio1.Selected.Value),
    Filter('20190211_case5', Title=Radio1.Selected.Value),
    '20190211_case5'
    )

    On your side, you should type:

    If(
     !IsBlank(Radio1.Selected.Value), 
     Filter('YourDataSource', FilteredColumn = Radio1.Selected.Value), /* <-- FilteredColumn represents the column in your data source, which you want to use to compare with the selected value within the Radio button control*/
     'YourDataSource'
    )

     

    If you want to reset the Radio button control when you presses the "Update" button, please take a try with the following workaround:

    Add the following formula within the OnSelect property of the "Update" control:

    Reset(Radio1) /* <-- Radio1 represents the Radio button control in your app */

    Or

    Set the Reset property of the Radio button control to following:

    IsReset

    Add the following formula within the OnSelect property of the "Update" control:

    Set(IsReset, true);Set(IsReset, false)

    More details about the Filter function in PowerApps, please check the following article:

    Filter function

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi v-xida-msft

     

    Thanks for a lot of advice.

    I was abile to solve it with the following below function.

     

    reset(radio1)

     

    Could I ask other question?

     

    This image is  the Case Management I'm making.
    I want to make the following three functions

     

    1.Client name filtering when input text
    2.Status filtering when checked Radio1 selected
    3.Gallery is always sort by Descending

     

    Please tell me the solution.
    I'm thinking of input some function in the "Gallery1" but I have not done yet.

     

    Thank you.

    図1.png
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Could you please share a bit more about the formula you typed within the Items propertyof the Gallery?

    Do you want to filter your Gallery items based on the Text Input1 box text and the Radio1 button selected value, and sort the result by Descending?

     

    I have made a test on my side, please take a try with the following workaround:

    Set the Items property of the Gallery to following:

    If(
     !IsBlank(Radio1.Selected.Value), 
     SortByColumns(
    Filter('YourDataSource', StartsWith(Client, InputText1.Text), Category = Radio1.Selected.Value),
    "Case No",
    Descending
    ), SortByColumns(
    Filter('YourDataSource', StartsWith(Client, InputText1.Text)),
    "Case No",
    Descending
    ) )

    Note: I assume that you want to sort your Gallery items based on "Case No" column.

    Or

    If(
     !IsBlank(Radio1.Selected.Value), 
     SortByColumns(
     Filter('YourDataSource', InputText1.Text in Client, Category = Radio1.Selected.Value),
     "Case No",
     Descending
     ),
     SortByColumns(
     Filter('YourDataSource', InputText1.Text in Client),
     "Case No",
     Descending
     )
    )

    Please take a try with above formula I provided, then check if the issue is solved.

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @v-xida-msft

     

    I got a solution based on your advice.

    Thank you for a lot.

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Have you solved your problem?

     

    If you have solved your problem, please go ahead to click "Accept as Solution" to identify this thread has been solved for other users in this forum.

     

    Best regards,

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 414

#2
Valantis Profile Picture

Valantis 387

#3
timl Profile Picture

timl 344 Super User 2026 Season 1

Last 30 days Overall leaderboard