cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
ajaykumard
Level: Powered On

Filtering for radio in gallery from List 2 based on "thisitem" in gallery from list 1

Setup

I have two SQL tables

  • Table 1 named Survey containing columns "Sl_No", "Survey", "Survey Section", "Survey Question", "SQSequence","Survey Answer Selection"
  • Table 2 named Dropdown_Rating containing columns "Sl_No", "Selection", "Selection Items", "SI Sequence"

The "Survey Answer Selection" in Tabe 1 = "Selection" in Table 2

Scenario

  1. User selects "Survey" from combobox dropdown (Distinct(SurveyLocal,Survey)). SurveyLocal is a collection based on Table 1 and navigates to next screen (Insection Screen)
  2. The inspection screen has two galleries. Gallery 1 for "Survey Section" filtered basis the "Survey" selection and Gallery 2 for "Survey Questions" filtered basis the ""Survey Section"

The Challenge

  • Every question is attributed with "Survey Answer Selection" and dropdown for this is available in Table 2 under "Selection"
  • Every question needs to answered by selecting the Radio control and I have set the Item property of radio control to - GroupBy(Filter(DropdownsLocal,ThisItem.Survey_x0020_Answer_x0020_Selection in Selection),"SelectionItems","FilteredDropDown") and this does not indicate an error but returns Blank results.
  • The DropdownLocal is a collection based on Table 2. GroupBy(DropdownsLocal,"SelectionItems","FilteredDropDown") shows all items in the radio control, however it is blank when the filter is incorporated as indicated above.

Any ideas to sort the above will be helpful.

3 REPLIES 3
Community Support Team
Community Support Team

Re: Filtering for radio in gallery from List 2 based on "thisitem" in gallery from list 1

Hi @ajaykumard ,

Could you please share a bit more about your scenario?

Do you add the Radio control within your Gallery ("Survey Questions" Gallery)?

Further, do you mean that the Filter function could not work within your GroupBy formula? Could you please share more details about the formula you typed within the Items property of the Gallery2 ("Survey Questions" Gallery)?

 

Based on the formula you provided, I could not find any syntax error with it. Please check if you could display the 'Survey Answer Selection' column value within your Gallery2 ("Survey Questions" Gallery). Within your Gallery2, add a Label, set the Text property to following:

ThisItem.'Survey Answer Selection'

then check if the Label could display proper 'Survey Answer Selection' value.

 

I assume that you filter your Gallery2 items based on the item selected in your Gallery1, is it true? Please take a try with the following workaround:

Set the Items property of the Gallery1 to following:

Distinct(
Filter(SurveyLocal, Survey = ComboBox1.Selected.Result),
'Survey Section'
)

Set the Items property of the Gallery2 to following:

Filter(SurveyLocal, 'Survey Section' = Gallery1.Selected.Result)

Then add Radio control in your Gallery2, set the Items property to following:

GroupBy(
Filter(DropdownsLocal, ThisItem.'Survey Answer Selection' in Selection),
"SelectionItems",
"FilteredDropDown"
)

Please take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
ajaykumard
Level: Powered On

Re: Filtering for radio in gallery from List 2 based on "thisitem" in gallery from list 1

Dear @v-xida-msft,

 

Thanks for the response. I have used the exact formula and the same is not working. Hence this call for help. Please find attached screenshots for further reference.

 

Picture1.pngPicture2.pngPicture3.pngPicture4.pngPicture5.pngPicture6.png

 

ajaykumard
Level: Powered On

Re: Filtering for radio in gallery from List 2 based on "thisitem" in gallery from list 1

Hi,

 

My problem is with the following. No error showing up and neither the filtered items

 

GroupBy(
Filter(DropdownsLocal, ThisItem.Survey_x0020_Answer_x0020_Selection in Selection),
"SelectionItems",
"FilteredDropDown"
)

 However, if the is replaced with ThisItem.Survey_x0020_Answer_x0020_Selection is replaced with "Rating Scale 3", it works.

 

GroupBy(
        Filter(DropdownsLocal, "Rating Scale 3" in Selection),
        "SelectionItems",
        "FilteredDropDown"
)

2019-09-15.png

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 175 members 3,507 guests
Please welcome our newest community members: